|
|
@@ -146,10 +146,6 @@ export function statusCodesHandler(result, callback) {
|
|
|
return $alert({ content: "密码错误" });
|
|
|
}
|
|
|
|
|
|
- if (result.code == statusCode.EXCEPTION) {
|
|
|
- return !http.__loading && $alert({ content: `${result.msg},请稍后再试` });
|
|
|
- }
|
|
|
-
|
|
|
if (result.code == statusCode.FAILURE_CODE_5001) {
|
|
|
callback(result.code);
|
|
|
return showLoginTips();
|
|
|
@@ -186,13 +182,11 @@ $.ajaxSetup({
|
|
|
},
|
|
|
success: function() {},
|
|
|
complete: function(data) {
|
|
|
- http.__loading = true;
|
|
|
},
|
|
|
});
|
|
|
|
|
|
export const http = {
|
|
|
statusCode,
|
|
|
- __loading: true,
|
|
|
__request(xhr, method, url, data, done, fail) {
|
|
|
if (typeof done != "function") {
|
|
|
done = noop;
|