fix(X-Pack): 第三方客户端免登报错账号密码错误

This commit is contained in:
fit2cloud-chenyw
2026-01-19 11:45:37 +08:00
committed by fit2cloud-chenyw
parent 2baee840e0
commit 060cd3f664

View File

@@ -257,9 +257,13 @@ service.interceptors.response.use(
error.config.loading && tryHideLoading(permissionStore.getCurrentPath)
if (header.has('DE-GATEWAY-FLAG')) {
const userToken = wsCache.get('user.token')
const inPlatformClient = !!wsCache.get('de-platform-client')
clearCache()
const flag = header.get('DE-GATEWAY-FLAG')
localStorage.setItem('DE-GATEWAY-FLAG', flag.toString())
if (!(userToken && inPlatformClient)) {
const flag = header.get('DE-GATEWAY-FLAG')
localStorage.setItem('DE-GATEWAY-FLAG', flag.toString())
}
let queryRedirectPath = '/workbranch/index'
if (router.currentRoute.value.fullPath) {
queryRedirectPath = router.currentRoute.value.fullPath as string