解决token失效

This commit is contained in:
red-deng-deng 2021-11-28 17:52:45 +08:00
parent 66b2f7a5bb
commit ba6c1f3fa6
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}