修复市局空白页

This commit is contained in:
wuhongjian 2022-08-02 15:40:37 +08:00
parent 11362c536d
commit a34e079708
1 changed files with 4 additions and 1 deletions

View File

@ -98,7 +98,10 @@ instance.interceptors.response.use(
}
if (response.headers.redirect) {
window.location.replace(response.headers.redirect)
return
// setTimeout(() => {
location.reload()
// }, 1000)
return response
}
if (response.headers.redirect === '/#/login') {
var keys = document.cookie.match(/[^ =;]+(?=\=)/g)