From 38c77a3e96a1cc4f601085d430f7999c3c4005b7 Mon Sep 17 00:00:00 2001 From: wuhongjian Date: Wed, 20 Jul 2022 17:22:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A5=BF=E6=B5=B7=E5=B2=B8=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E5=9B=9E=E5=8D=95=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/home/components/header.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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') + } } } // 跳转页面