1
0
mirror of synced 2025-12-13 00:38:05 +08:00

过期删除token

This commit is contained in:
qianlishi
2023-12-12 10:47:45 +08:00
parent 5859681aa2
commit 2500486957

View File

@@ -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 = "/";
}) })
} }