From eeff406f01c58cdd08f11f7ec826472240f9bb23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Fri, 1 Jul 2022 11:34:29 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E9=80=80=E5=87=BA=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E8=B7=B3=E8=BD=AC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Navbar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 0d370c7..70d0057 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -86,7 +86,7 @@ function logout() { }) .then(() => { userStore.logOut().then(() => { - location.href = '/index' + location.href = import.meta.env.VITE_APP_ROUTER_PREFIX + 'index'; }) }) .catch(() => {})