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(() => {})