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