Skip to content

Commit d0d6a13

Browse files
committed
fix: 设置 vite basePath 后,重新登录跳转路由错误
1 parent 094c3fe commit d0d6a13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config/axios/service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ const handleAuthorized = () => {
229229
wsCache.clear()
230230
removeToken()
231231
isRelogin.show = false
232-
window.location.href = '/'
232+
window.location.href = import.meta.env.VITE_BASE_PATH
233233
})
234234
.catch(() => {
235235
isRelogin.show = false

0 commit comments

Comments
 (0)