清除hash

This commit is contained in:
red-deng-deng 2021-11-29 14:47:46 +08:00
parent e178b22753
commit 76c45170fe
1 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ const upload = (method, url, params, responseType) => {
Notify.clear(); Notify.clear();
Notify.error(response.message); Notify.error(response.message);
setTimeout(() => { setTimeout(() => {
window.location.href='/login'; window.location.href='/';
}, 2000) }, 2000)
}else if(response.code==401){ }else if(response.code==401){
Notify.clear(); Notify.clear();
@ -69,7 +69,7 @@ const upload = (method, url, params, responseType) => {
Notify.clear(); Notify.clear();
Notify.error(response.message); Notify.error(response.message);
setTimeout(() => { setTimeout(() => {
window.location.href='/login'; window.location.href='/';
}, 2000) }, 2000)
}else if(response.code==401){ }else if(response.code==401){
Notify.clear(); Notify.clear();
@ -141,7 +141,7 @@ const req = (method, url, params, responseType) => {
Notify.clear(); Notify.clear();
Notify.error(response.message); Notify.error(response.message);
setTimeout(() => { setTimeout(() => {
window.location.href='/login'; window.location.href='/';
}, 2000) }, 2000)
}else if(response.code==401){ }else if(response.code==401){
Notify.clear(); Notify.clear();