增加登录跳转刷新

This commit is contained in:
2025-08-19 13:34:05 +08:00
parent d10a6cb178
commit a4abdf9cc0

View File

@@ -49,6 +49,9 @@ http.interceptors.response.use(response => {
if (response.data && response.data.code === 401) { // 401, token失效
clearLoginInfo()
router.push({name: 'login'})
setTimeout(() => {
window.location.reload()
}, 300);
}
return response
}, error => {