Commit c939b602 by liwk

commit

1 parent 625c120e
......@@ -66,6 +66,8 @@ const actions = {
code,
corpId
}).then(({ code, data, message }) => {
let route = state.lastPath == 'coupon' ? '' : state.lastPath || ''
route = route.replace('.', '/')
state.showWindow = true
if (code == '0') {
if (data.loginList.length) {
......@@ -121,11 +123,8 @@ const actions = {
}
} else {
const { baseURL } = window.$fetchConfig.request
// const [baseURL] = redirectUrl.split('/dj-scrm-wx-work-main/')
let url = `${baseURL}/dj-scrm-wx-work-main/#/`
let route = state.lastPath == 'coupon' ? '' : state.lastPath || ''
route = route.replace('.', '/')
window.location.href = `${url}?redirect_uri=${redirectUrl}&router=${route}`
window.location.href = `${url}?redirect_uri=${redirectUrl}`
}
},
navigation({ dispatch }) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!