diff --git a/components/directionGoodsItem.vue b/components/directionGoodsItem.vue index 3c2dae4..73b89e6 100644 --- a/components/directionGoodsItem.vue +++ b/components/directionGoodsItem.vue @@ -371,9 +371,16 @@ }, success: ({ data }) => { if (data > 0) { - this.$util.showToast({ - title: '加入购物车成功' - }); + if (type == 'add'){ + this.$util.showToast({ + title: '加入购物车成功' + }); + }else{ + this.$util.showToast({ + title: '移除购物车成功' + }); + } + this.$forceUpdate(); this.cartNumber += this.number; if (this.callback) this.callback();