Update api.js

This commit is contained in:
姜棚 2021-11-28 17:14:39 +08:00
parent 8e1d39e9e9
commit 6674d16bca
1 changed files with 0 additions and 15 deletions

View File

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