This commit is contained in:
qsh
2025-06-20 15:00:07 +08:00
parent 119aab5e3f
commit cbaaec207b
3 changed files with 578 additions and 4 deletions

View File

@@ -218,7 +218,7 @@ service.interceptors.response.use(
resetRouter() // 重置静态路由表
cache.local.clear()
removeToken()
window.location.href = `/login?tenantId=${tenantId}&appId=${appId}`
window.location.href = `/tiku/login?tenantId=${tenantId}&appId=${appId}`
})
}
}
@@ -266,7 +266,7 @@ const handleAuthorized = () => {
isRelogin.show = false
// 干掉token后再走一次路由让它过router.beforeEach的校验
// window.location.href = window.location.href
window.location.href = `/login?tenantId=${tenantId}&appId=${appId}`
window.location.href = `/tiku/login?tenantId=${tenantId}&appId=${appId}`
})
}
return Promise.reject(t('sys.api.timeoutMessage'))