Browse Source

[FIX] discount parameter in cart item

Gogs 7 years ago
parent
commit
5de0130f4c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/components/cart/CartItem.vue

+ 1 - 0
src/components/cart/CartItem.vue

@@ -59,6 +59,7 @@
         },
         mounted() {
             this.$set(this.item, 'qty', 1)
+            this.$set(this.item, 'discount', 0)
         }
     }
 </script>