BUG 30123
This commit is contained in:
@@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user