Skip to content

Commit 5daf0be

Browse files
YunaiVgitee-org
authored andcommitted
!89 设置 vite basePath 后,重新登录跳转路由错误
Merge pull request !89 from mgzu/master
2 parents 094c3fe + d0d6a13 commit 5daf0be

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)