yuanyuan 3 vuotta sitten
vanhempi
commit
90390d8f27
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      src/views/product/Detail.vue

+ 1 - 0
src/views/product/Detail.vue

@@ -1119,6 +1119,7 @@ export default {
                     .then(res => {
                         this.$toast.success('恭喜加入购物车');
                         this.getCartNum();
+                        this.$refs.sale.getData(true);
                     })
                     .catch(e => {
                         this.$toast(e.error);