fix:修复筛选的问题

This commit is contained in:
fanxb 2021-03-31 16:00:28 +08:00
parent fbb4f8e005
commit 3cd8b22b89

View File

@ -71,7 +71,11 @@ export default {
this.list = [];
this.selectIndex = null;
},
searchClick() {
searchClick(value, e) {
//enter
if (e && e.key) {
return;
}
if (this.timer != null) {
clearTimeout(this.timer);
}
@ -90,7 +94,7 @@ export default {
if (e) {
this.stopDefault(e);
}
if (!index) {
if (index === undefined || index === null) {
return;
}
let bookmark = this.list[index];