代客下单更新
1.筛选时去除头尾空格来匹配
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user