From 67e0b33070285e867b433947992893e2446aa20b Mon Sep 17 00:00:00 2001 From: durunsong Date: Wed, 20 Nov 2024 14:40:32 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=94fix:=E8=BF=98=E5=8E=9F=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E5=88=87=E6=8D=A2=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/components/NavigationBar/index.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/layouts/components/NavigationBar/index.vue b/src/layouts/components/NavigationBar/index.vue index 11d15d4..8f7d00a 100644 --- a/src/layouts/components/NavigationBar/index.vue +++ b/src/layouts/components/NavigationBar/index.vue @@ -85,8 +85,6 @@ import { useLayoutMode } from "@/hooks/useLayoutMode"; import { useI18n } from "vue-i18n"; import CACHE_KEY from "@/constants/cache-key"; import { getLocalData } from "@/utils/cache/local-storage"; -import { useRouter } from "vue-router"; -const router = useRouter(); const { t } = useI18n(); const { isMobile } = useDevice(); @@ -134,7 +132,7 @@ const toggleSidebar = () => { /** 登出 */ const logout = () => { userStore.logout(); - router.push("/login"); + window.location.reload(); };