diff --git a/front/src/views/home/components/header.vue b/front/src/views/home/components/header.vue index 35354823..934d6595 100644 --- a/front/src/views/home/components/header.vue +++ b/front/src/views/home/components/header.vue @@ -162,11 +162,14 @@ const logout = async () => { await store.dispatch('user/logout') window.sessionStorage.setItem('visits', JSON.stringify([])) - if (recordRoute) { - const fullPath = route.fullPath - router.push(`/login?redirect=${fullPath}`) - } else { - router.push('/login') + // 西海岸不返回登录页 + if (!whoShow1.itShowXiHaiAn) { + if (recordRoute) { + const fullPath = route.fullPath + router.push(`/login?redirect=${fullPath}`) + } else { + router.push('/login') + } } } // 跳转页面