|
@@ -37,7 +37,8 @@ axios.interceptors.response.use(
|
|
// message: `401. 没有权限访问该接口: ${res.config.url}`,
|
|
// message: `401. 没有权限访问该接口: ${res.config.url}`,
|
|
message: `401. 没有权限访问该接口`,
|
|
message: `401. 没有权限访问该接口`,
|
|
});
|
|
});
|
|
- if (res.data.data.indexOf('Jwt expired') != -1) {
|
|
|
|
|
|
+ if (res.data.data.indexOf('Jwt expired') != -1) {
|
|
|
|
+ debugger
|
|
window.localStorage.removeItem('userdata');
|
|
window.localStorage.removeItem('userdata');
|
|
window.location.href = LOGIN_URL;
|
|
window.location.href = LOGIN_URL;
|
|
}
|
|
}
|
|
@@ -70,6 +71,7 @@ axios.interceptors.response.use(
|
|
|
|
|
|
if (res.status >= 500) {
|
|
if (res.status >= 500) {
|
|
if (res.data?.message == 'invalid ticket') {
|
|
if (res.data?.message == 'invalid ticket') {
|
|
|
|
+ debugger
|
|
window.localStorage.removeItem('userdata');
|
|
window.localStorage.removeItem('userdata');
|
|
window.location.href = LOGIN_URL;
|
|
window.location.href = LOGIN_URL;
|
|
}
|
|
}
|