修改搜索商品中页面数量不显示0个的bug
This commit is contained in:
parent
884b7e5b38
commit
a665e924cc
@ -371,6 +371,8 @@ export default {
|
||||
const goods = this.goodsDetail.find(g => g.goods_id === param.id);
|
||||
if (goods) {
|
||||
this.$set(param, 'quantity', goods.count);
|
||||
}else{
|
||||
this.$set(param, 'quantity', 0);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user