Browse Source

提交传入token

old
jiangyy 4 years ago
parent
commit
4906db6ea4
  1. 7
      src/views/form/write/index.vue

7
src/views/form/write/index.vue

@ -102,8 +102,6 @@ export default {
this.orgType = this.$route.query.orgType
this.realName = this.$route.query.realName
this.accessKey = this.$route.query.accessKey
// const token = this.$route.query.token
// this.$store.dispatch('user/setTokens', token)
let key = this.$route.query.key || this.$route.params.key
this.projectConfig.projectKey = key
@ -111,6 +109,11 @@ export default {
if (wxCode) {
this.wxAuthorizationCode = wxCode
await this.getWxAuthorizationUserInfo()
} else {
console.log('微信传入token')
const token = this.$route.query.token
this.$store.dispatch('user/setTokens', token)
}
this.getWxAuthorizationUrl()
this.queryProjectSettingStatus()

Loading…
Cancel
Save