解决token失效
This commit is contained in:
parent
66b2f7a5bb
commit
ba6c1f3fa6
|
@ -96,8 +96,9 @@ const req = (method, url, params, responseType) => {
|
||||||
case 401:
|
case 401:
|
||||||
Notify.clear();
|
Notify.clear();
|
||||||
Notify.error( "当前信息过期请重新登录");
|
Notify.error( "当前信息过期请重新登录");
|
||||||
|
sessionStorage.clear();
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
window.location.href='./login';
|
window.location.href='/login';
|
||||||
}, 3000)
|
}, 3000)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue