From c1f5b7260ef0479faa484e0c2060dc6ee60c0977 Mon Sep 17 00:00:00 2001 From: modendeveloper Date: Sat, 26 Apr 2025 16:06:56 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A3707=20=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E5=9C=A8=E5=95=86=E8=AF=A6?= =?UTF-8?q?=E9=A1=B5=E8=B4=AD=E4=B9=B0=E5=95=86=E5=93=81=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=87=8F=E5=B0=91=E5=95=86=E5=93=81=E6=95=B0=E9=87=8F=E4=BC=9A?= =?UTF-8?q?=E5=8F=98=E4=B8=BA=E8=B4=9F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ProductWindow.vue | 2 ++ 1 file changed, 2 insertions(+) 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 }) },