fixed:退出只清理特定的localStorage 不再进行全部清理操作
This commit is contained in:
@@ -80,7 +80,7 @@ service.interceptors.response.use(
|
||||
})
|
||||
if (response.data.data && response.data.data.reload) {
|
||||
userStore.token = ''
|
||||
localStorage.clear()
|
||||
window.localStorage.removeItem('token')
|
||||
router.push({ name: 'Login', replace: true })
|
||||
}
|
||||
return response.data.msg ? response.data : response
|
||||
|
||||
Reference in New Issue
Block a user