mirror of
https://github.com/dataease/dataease.git
synced 2026-05-22 21:38:32 +08:00
perf: 许可证机制
This commit is contained in:
@@ -143,6 +143,15 @@ service.interceptors.response.use(
|
||||
message: response.data.msg,
|
||||
showClose: true
|
||||
})
|
||||
if (response.data.code === 80001) {
|
||||
// localStorage.clear()
|
||||
localStorage.setItem('DE-GATEWAY-FLAG', response.data.msg)
|
||||
let queryRedirectPath = '/workbranch/index'
|
||||
if (router.currentRoute.value.fullPath) {
|
||||
queryRedirectPath = router.currentRoute.value.fullPath as string
|
||||
}
|
||||
router.push(`/login?redirect=${queryRedirectPath}`)
|
||||
}
|
||||
}
|
||||
|
||||
return Promise.reject(response.data.msg)
|
||||
|
||||
Reference in New Issue
Block a user