mirror of https://gitee.com/karson/fastadmin.git
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
parent
3831955b9b
commit
361ffc8aa2
|
|
@ -157,7 +157,7 @@
|
||||||
} else {
|
} else {
|
||||||
key = isArray ? value : key;
|
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;
|
return optionList;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue