过期删除token
This commit is contained in:
@@ -38,8 +38,9 @@ service.interceptors.response.use(
|
|||||||
type: 'warning'
|
type: 'warning'
|
||||||
}
|
}
|
||||||
).then(() => {
|
).then(() => {
|
||||||
sessionStorage.clear()
|
// sessionStorage.clear()
|
||||||
localStorage.clear()
|
// localStorage.clear()
|
||||||
|
localStorage.removeItem('AJReportToken')
|
||||||
window.location.href = "/";
|
window.location.href = "/";
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user