Sfoglia il codice sorgente

!89 设置 vite basePath 后,重新登录跳转路由错误
Merge pull request !89 from mgzu/master

芋道源码 1 anno fa
parent
commit
5daf0befe4
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/config/axios/service.ts

+ 1 - 1
src/config/axios/service.ts

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