mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
fix(X-Pack): 第三方客户端免登报错账号密码错误
This commit is contained in:
committed by
fit2cloud-chenyw
parent
2baee840e0
commit
060cd3f664
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user