Commit c939b602 by liwk

commit

1 parent 625c120e
...@@ -66,6 +66,8 @@ const actions = { ...@@ -66,6 +66,8 @@ const actions = {
code, code,
corpId corpId
}).then(({ code, data, message }) => { }).then(({ code, data, message }) => {
let route = state.lastPath == 'coupon' ? '' : state.lastPath || ''
route = route.replace('.', '/')
state.showWindow = true state.showWindow = true
if (code == '0') { if (code == '0') {
if (data.loginList.length) { if (data.loginList.length) {
...@@ -121,11 +123,8 @@ const actions = { ...@@ -121,11 +123,8 @@ const actions = {
} }
} else { } else {
const { baseURL } = window.$fetchConfig.request const { baseURL } = window.$fetchConfig.request
// const [baseURL] = redirectUrl.split('/dj-scrm-wx-work-main/')
let url = `${baseURL}/dj-scrm-wx-work-main/#/` let url = `${baseURL}/dj-scrm-wx-work-main/#/`
let route = state.lastPath == 'coupon' ? '' : state.lastPath || '' window.location.href = `${url}?redirect_uri=${redirectUrl}`
route = route.replace('.', '/')
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!