fix: 设置 vite basePath 后,重新登录跳转路由错误

liutao_branch
马光祖 3 years ago
parent 094c3fe13f
commit d0d6a13285

@ -229,7 +229,7 @@ const handleAuthorized = () => {
wsCache.clear() wsCache.clear()
removeToken() removeToken()
isRelogin.show = false isRelogin.show = false
window.location.href = '/' window.location.href = import.meta.env.VITE_BASE_PATH
}) })
.catch(() => { .catch(() => {
isRelogin.show = false isRelogin.show = false

Loading…
Cancel
Save