|
@ -104,21 +104,22 @@ export default { |
|
|
this.realName = this.$route.query.realName |
|
|
this.realName = this.$route.query.realName |
|
|
this.accessKey = this.$route.query.accessKey |
|
|
this.accessKey = this.$route.query.accessKey |
|
|
|
|
|
|
|
|
|
|
|
console.log('微信传入token') |
|
|
|
|
|
const token = this.$route.query.token |
|
|
|
|
|
if (token) { |
|
|
|
|
|
this.$store.dispatch('user/setTokens', token) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let key = this.$route.query.key || this.$route.params.key |
|
|
let key = this.$route.query.key || this.$route.params.key |
|
|
this.projectConfig.projectKey = key |
|
|
this.projectConfig.projectKey = key |
|
|
let wxCode = getQueryString('code') |
|
|
let wxCode = getQueryString('code') |
|
|
if (wxCode) { |
|
|
if (wxCode) { |
|
|
this.wxAuthorizationCode = wxCode |
|
|
this.wxAuthorizationCode = wxCode |
|
|
await this.getWxAuthorizationUserInfo() |
|
|
await this.getWxAuthorizationUserInfo() |
|
|
console.log('微信传入token') |
|
|
|
|
|
const token = this.$route.query.token |
|
|
|
|
|
this.$store.dispatch('user/setTokens', token) |
|
|
|
|
|
} else { |
|
|
|
|
|
console.log('微信传入token') |
|
|
|
|
|
const token = this.$route.query.token |
|
|
|
|
|
this.$store.dispatch('user/setTokens', token) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.getWxAuthorizationUrl() |
|
|
this.getWxAuthorizationUrl() |
|
|
this.queryProjectSettingStatus() |
|
|
this.queryProjectSettingStatus() |
|
|
this.queryProjectSetting() |
|
|
this.queryProjectSetting() |
|
|