BUG 修改

This commit is contained in:
wuhongjian 2022-06-23 15:02:11 +08:00
parent f7e1556ed7
commit 5430330eaf
1 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ instance.interceptors.response.use(
}
}
console.log('已清除')
location.reload()
router.push({ path: '/login' })
}
response['Access-Control-Expose-Headers'] = 'redirect'
const { code, message } = response.data
@ -170,7 +170,7 @@ instance.interceptors.response.use(
}
}
console.log('已清除')
location.reload()
router.push({ path: '/login' })
}
if (response.headers.redirect) {
window.location.href = response.headers.redirect