fix:退出登录跳转问题

This commit is contained in:
不做码农 2022-07-01 11:34:29 +08:00
parent 36f1c67466
commit eeff406f01

View File

@ -86,7 +86,7 @@ function logout() {
})
.then(() => {
userStore.logOut().then(() => {
location.href = '/index'
location.href = import.meta.env.VITE_APP_ROUTER_PREFIX + 'index';
})
})
.catch(() => {})