parent
a14a9877c2
commit
5d1961d772
|
|
@ -1316,7 +1316,7 @@ export default {
|
||||||
this.goods.list = this.$goodsData.records || [];
|
this.goods.list = this.$goodsData.records || [];
|
||||||
} else {
|
} else {
|
||||||
const newarr = this.$goodsData.records.filter((v) =>
|
const newarr = this.$goodsData.records.filter((v) =>
|
||||||
v.name.includes(newval)
|
v.name.includes(newval.trim())
|
||||||
);
|
);
|
||||||
this.search.list = newarr;
|
this.search.list = newarr;
|
||||||
this.goods.list = newarr.length ? newarr : this.$goodsData.records;
|
this.goods.list = newarr.length ? newarr : this.$goodsData.records;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue