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/453/head
还俗二师兄 2023-08-24 15:26:01 +00:00 committed by Gitee
parent 3831955b9b
commit 361ffc8aa2
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>", key === vObjCol.defaultValue ? 'selected' : ''));
});
return optionList;
};