Commit e928483c by liwk

commit

1 parent 5ad258d9
...@@ -55,9 +55,10 @@ const actions = { ...@@ -55,9 +55,10 @@ const actions = {
commit('REMOVE_KEEP', names) commit('REMOVE_KEEP', names)
}, },
login({ dispatch }) { login({ dispatch }) {
let [redirectUrl] = window.location.href.split('?')
// 以下是 本地调试多账号 // 以下是 本地调试多账号
if (process.env.NODE_ENV == 'development') { if (process.env.NODE_ENV == 'development') {
let [redirectUrl] = window.location.href.split('?')
const code = getParams('code') const code = getParams('code')
if (code) { if (code) {
const { corpId } = util.getLocalStorage('dj_scrm_corpId') const { corpId } = util.getLocalStorage('dj_scrm_corpId')
...@@ -124,7 +125,7 @@ const actions = { ...@@ -124,7 +125,7 @@ const actions = {
let url = `${baseURL}/dj-scrm-wx-work-main/#/` let url = `${baseURL}/dj-scrm-wx-work-main/#/`
let route = state.lastPath == 'coupon' ? '' : state.lastPath || '' let route = state.lastPath == 'coupon' ? '' : state.lastPath || ''
route = route.replace('.', '/') route = route.replace('.', '/')
window.location.href = `${url}?redirect_uri=${redirect_uri}&router=${route}` window.location.href = `${url}?redirect_uri=${redirectUrl}&router=${route}`
} }
}, },
navigation({ dispatch }) { navigation({ dispatch }) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!