Commit af323ae4 by 李伟康

修复授权白屏

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