更新前端

This commit is contained in:
不胜舟
2023-04-06 16:41:48 +08:00
parent 2364ebb519
commit 5d10a304b3
56 changed files with 100137 additions and 95097 deletions
+3 -2
View File
@@ -42,7 +42,8 @@ layui.define(['jquery', 'layer'], function (exports) {
contentType: 'application/json',
headers: {
'X-Requested-With': 'XMLHttpRequest'
}
},
customHandleError: true
},
defaultError: {
@@ -112,7 +113,7 @@ layui.define(['jquery', 'layer'], function (exports) {
},
handleErrorResponse: function (jqXHR, userOptions, $dfd) {
if (userOptions.customHandleError !== false) {
if (!userOptions.customHandleError) {
switch (jqXHR.status) {
case 401:
http.ajax.showErrorAndRedirectUrl(http.ajax.defaultError401, http.appPath);