From 79ddcd69cebf6c0ad787043bd8cb860e00d0019d Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Mon, 22 Apr 2024 22:48:04 +0800 Subject: [PATCH] =?UTF-8?q?Fix(=E8=AE=A2=E5=8D=95):[#1221]=E4=B8=8B?= =?UTF-8?q?=E5=8D=95=E7=95=8C=E9=9D=A2=E9=80=89=E6=8B=A9=E4=BC=98=E6=83=A0?= =?UTF-8?q?=E5=88=B8=E5=90=8E=E6=97=A0=E6=B3=95=E5=8F=96=E6=B6=88=E5=8B=BE?= =?UTF-8?q?=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Coupons.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/Coupons.vue b/components/Coupons.vue index 63a3b68..69b4bb2 100644 --- a/components/Coupons.vue +++ b/components/Coupons.vue @@ -76,7 +76,8 @@ export default { }, selectCoupon() { if (!this.radioModel) return - this.$emit('change', this.data.id) + // 已选中则可以取消选中 + this.$emit('change', this.data.checked ? '' : this.data.id) } } }