Commit 2e99667e by liwk

commit

1 parent 503a4044
......@@ -19,6 +19,7 @@ router.beforeEach((to, from, next) => {
const params = getParams(window.location.href)
if (window.__wxjs_environment === 'miniprogram') {
setUserInfo(params)
next()
} else {
if (ua.match(/MicroMessenger/i) == 'micromessenger') {
let userInfo = sessionStorage.getItem('GL_EQUITY_USER_INFO')
......@@ -32,6 +33,7 @@ router.beforeEach((to, from, next) => {
return
} else {
setUserInfo(params)
next()
}
}
} else {
......
import router from '@/router'
export default {
state: {
verificationCount: null,
......@@ -20,7 +21,7 @@ export default {
route = ''
} else {
if (!newVal.phone) {
window.vm.$router.replace({ name: 'common.phoneLogin' })
router.replace({ name: 'common.phoneLogin' })
return
}
}
......@@ -28,8 +29,6 @@ export default {
return
}
}
} else {
window.vm.$router.replace({ name: state.lastPath })
}
},
setVerificationCount(state, newVal) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!