Update api.js
This commit is contained in:
parent
8e1d39e9e9
commit
6674d16bca
|
@ -100,19 +100,6 @@ const req = (method, url, params, responseType) => {
|
|||
window.location.href='./login';
|
||||
}, 3000)
|
||||
break;
|
||||
case 417:
|
||||
Notify.clear();
|
||||
Notify.error( res.statusText);
|
||||
break;
|
||||
|
||||
case 500:
|
||||
Notify.clear();
|
||||
Notify.error( res.statusText);
|
||||
break;
|
||||
default:
|
||||
Notify.clear();
|
||||
Notify.error( res.statusText);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -128,8 +115,6 @@ export const handelResponse = (res, cb, errCb) => {
|
|||
} else {
|
||||
if (typeof errCb == 'function') {
|
||||
errCb(res.message)
|
||||
Notify.clear();
|
||||
Notify.error(res.message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue