diff --git a/ruoyi-fastapi-frontend/src/layout/components/Navbar.vue b/ruoyi-fastapi-frontend/src/layout/components/Navbar.vue index 05e15af227c9454eff98fea4e79274b85226f00f..d65aaa2f0743f897feee28d23ce8c6bf64ff0176 100644 --- a/ruoyi-fastapi-frontend/src/layout/components/Navbar.vue +++ b/ruoyi-fastapi-frontend/src/layout/components/Navbar.vue @@ -89,7 +89,7 @@ function logout() { type: 'warning' }).then(() => { userStore.logOut().then(() => { - location.href = '/index'; + location.href = process.env.VUE_APP_PRE_URL + '/index'; }) }).catch(() => { }); }