西海岸直接回单点

This commit is contained in:
wuhongjian 2022-07-20 17:22:23 +08:00
parent 66a5d33609
commit 38c77a3e96
1 changed files with 8 additions and 5 deletions

View File

@ -162,11 +162,14 @@
const logout = async () => { const logout = async () => {
await store.dispatch('user/logout') await store.dispatch('user/logout')
window.sessionStorage.setItem('visits', JSON.stringify([])) window.sessionStorage.setItem('visits', JSON.stringify([]))
if (recordRoute) { // 西
const fullPath = route.fullPath if (!whoShow1.itShowXiHaiAn) {
router.push(`/login?redirect=${fullPath}`) if (recordRoute) {
} else { const fullPath = route.fullPath
router.push('/login') router.push(`/login?redirect=${fullPath}`)
} else {
router.push('/login')
}
} }
} }
// //