Commit 126e2b3a by weiw

fix:处理登录失效

parent 8ae3e3bb
...@@ -55,8 +55,8 @@ service.interceptors.response.use( ...@@ -55,8 +55,8 @@ service.interceptors.response.use(
} }
else if (code === '00000005') { else if (code === '00000005') {
// 处理登录失效 // 处理登录失效
window.localStorage.removeItem('__TOKEN__') window.localStorage.clear()
window.location.href = '/sdream-ai' // window.location.href = '/sdream-ai'
// window.location.reload() // window.location.reload()
} }
else { else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment