diff --git a/components/ProductWindow.vue b/components/ProductWindow.vue index 2bb0b9b..827cc93 100644 --- a/components/ProductWindow.vue +++ b/components/ProductWindow.vue @@ -176,10 +176,12 @@ export default { this.$emit("changeFun", { action: "changeattr", value: false }) }, CartNumDes() { + if(this.cartNumber === 1) return this.cartNumber-- this.$emit("changeFun", { action: "ChangeCartNum", value: this.cartNumber }) }, CartNumAdd() { + this.cartNumber++ this.$emit("changeFun", { action: "ChangeCartNum", value: this.cartNumber }) },