diff --git a/components/ProductWindow.vue b/components/ProductWindow.vue index fd3747e..226bf0e 100644 --- a/components/ProductWindow.vue +++ b/components/ProductWindow.vue @@ -181,7 +181,7 @@ export default { this.$emit("changeFun", { action: "ChangeCartNum", value: this.cartNumber }) }, CartNumAdd() { - + if(this.cartNumber >= this.attrObj.productSelect.stock) return this.cartNumber++ this.$emit("changeFun", { action: "ChangeCartNum", value: this.cartNumber }) },