From d943031462fce9ba8f06a4bfb48ef3a6732ce354 Mon Sep 17 00:00:00 2001 From: hequan_waynaqua <1669738430@qq.com> Date: Fri, 25 Sep 2020 10:41:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=95=86=E5=93=81=E6=93=8D?= =?UTF-8?q?=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ProductItem/index.vue | 1 + src/views/product/index.vue | 38 ++++++++++++++++++++-------- 2 files changed, 29 insertions(+), 10 deletions(-) diff --git a/src/components/ProductItem/index.vue b/src/components/ProductItem/index.vue index 605d36d..89a18e9 100644 --- a/src/components/ProductItem/index.vue +++ b/src/components/ProductItem/index.vue @@ -49,6 +49,7 @@ export default { message: '已添加至购物车', duration: 1500 }) + this.$emit('getCartGoodsCount') }) } } diff --git a/src/views/product/index.vue b/src/views/product/index.vue index 5ac18ba..7059196 100644 --- a/src/views/product/index.vue +++ b/src/views/product/index.vue @@ -1,15 +1,17 @@