Commit af323ae4 by 李伟康

修复授权白屏

1 parent 6599f28d
......@@ -78,10 +78,9 @@ const actions = {
getUserInfoFlag: agentId ? true : false
})
.then(({ code, data }) => {
let url = `${redirectUrl.split('#')[0]}#/`
let url = `${window.$fetchConfig.request.baseURL}/#/`
let route = state.lastPath == 'home' ? '' : state.lastPath
state.showWindow = true
console.log(data)
if (code == '0') {
if (data.loginList.length) {
route = route.replace('.', '/')
......@@ -138,7 +137,7 @@ const actions = {
return
} else {
appid = 'ww7ee69c648ae1b7e6'
agentid = 1000035
// agentid = 1000003
// appid = 'wwc1fefc2a3f70bd0b'
// agentid = 1000002
}
......@@ -168,7 +167,6 @@ const actions = {
}
if (redirect_uri) util.setLocalStorage('dj_scrm_redirect_uri', redirect_uri)
let dj_scrm = util.getLocalStorage('dj_scrm_corpId')
console.log(redirect_uri, corpId, agentId)
if (dj_scrm && userInfo) {
if (dj_scrm.corpId != userInfo.entmicroId) {
util.showLoading()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!