清除hash
This commit is contained in:
parent
e178b22753
commit
76c45170fe
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue