1、修复请求返回值未使用常量web_status.SUCCESS的问题。

This commit is contained in:
kagome2014
2020-12-21 10:23:02 +08:00
committed by Gitee
parent bda12d5016
commit 0c8a6935f2
4 changed files with 5 additions and 5 deletions

View File

@ -172,7 +172,7 @@ var table = {
if (typeof table.get(this.id).responseHandler == "function") {
table.get(this.id).responseHandler(res);
}
if (res.code == 0) {
if (res.code == web_status.SUCCESS) {
if ($.common.isNotEmpty(table.options.sidePagination) && table.options.sidePagination == 'client') {
return res.rows;
} else {
@ -612,7 +612,7 @@ var table = {
if (typeof table.options.responseHandler == "function") {
table.options.responseHandler(res);
}
if (res.code != undefined && res.code != 0) {
if (res.code != undefined && res.code != web_status.SUCCESS) {
$.modal.alertWarning(res.msg);
return [];
} else {