diff --git a/src/assets/api.js b/src/assets/api.js index 7fe58f74..cd6669d4 100644 --- a/src/assets/api.js +++ b/src/assets/api.js @@ -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); } } }