fix:退出登录跳转问题

This commit is contained in:
不做码农
2022-07-02 16:50:57 +08:00
parent 36f1c67466
commit eeff406f01
+1 -1
View File
@@ -86,7 +86,7 @@ function logout() {
}) })
.then(() => { .then(() => {
userStore.logOut().then(() => { userStore.logOut().then(() => {
location.href = '/index' location.href = import.meta.env.VITE_APP_ROUTER_PREFIX + 'index';
}) })
}) })
.catch(() => {}) .catch(() => {})