BUG 30123

This commit is contained in:
aixianling
2022-06-09 10:24:21 +08:00
parent 55eb5a0760
commit ee8719f972
2 changed files with 4 additions and 5 deletions

View File

@@ -10,7 +10,6 @@ let agentSignURL = "", apiList = []
const store = new Vuex.Store({
state: {
token: "",
corpId: "",
openUser: {},
user: {},
config: {},
@@ -65,7 +64,7 @@ const store = new Vuex.Store({
},
redirectCode(state, url = location.href) {
let REDIRECT_URI = encodeURIComponent(url),
corpid = state.corpId
corpid = state.config.corpid
const redirectTo = cid => {
location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=CORPID&redirect_uri=REDIRECT_URI&response_type=code&scope=snsapi_base#wechat_redirect'
.replace(/CORPID/g, cid)
@@ -75,7 +74,7 @@ const store = new Vuex.Store({
redirectTo(corpid)
} else {
store.dispatch("agentSign").then(() => {
corpid = state.corpId
corpid = state.config.corpid
redirectTo(corpid)
})
}