update public/assets/js/bootstrap-table-commonsearch.js.

当bstable中searchList传入id为0的数组时,又和页面nav-tabs中关联时,会判断 null==0 为true,导致一进入页面,选项卡为全部,但是传入的这个select会选中id为0的option,而不是空

Signed-off-by: 还俗二师兄 <505097558@qq.com>
pull/454/head
还俗二师兄 2023-08-25 15:56:52 +00:00 committed by Gitee
parent 361ffc8aa2
commit f6a74d9fa6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@
} else {
key = isArray ? value : key;
}
optionList.push(sprintf("<option value='" + key + "' %s>" + value + "</option>", key === vObjCol.defaultValue ? 'selected' : ''));
optionList.push(sprintf("<option value='" + key + "' %s>" + value + "</option>", , vObjCol.defaultValue && key == vObjCol.defaultValue ? 'selected' : ''));
});
return optionList;
};