Commit eca48fc7 by 李伟康

测试登录

1 parent d5749502
...@@ -69,12 +69,6 @@ const actions = { ...@@ -69,12 +69,6 @@ const actions = {
login({ dispatch }) { login({ dispatch }) {
let [redirectUrl] = window.location.href.split('?') let [redirectUrl] = window.location.href.split('?')
const code = getParams('code') const code = getParams('code')
let sessionId = util.getSessionId()
if(sessionId){
state.showWindow = true
window.location.replace(redirectUrl)
return
}
if (code) { if (code) {
const { corpId } = util.getLocalStorage('dj_scrm_corpId') const { corpId } = util.getLocalStorage('dj_scrm_corpId')
ssoApi ssoApi
...@@ -179,8 +173,11 @@ const login = ({ dispatch, to }) => { ...@@ -179,8 +173,11 @@ const login = ({ dispatch, to }) => {
dispatch('login') dispatch('login')
return return
} }
} }else{
window.location.href = window.location.href.split('?')[0]
state.showWindow = true state.showWindow = true
}
} }
const getParams = name => { const getParams = name => {
let [url, paramsList] = window.location.href.split('?') let [url, paramsList] = window.location.href.split('?')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!