From 412434b1433dd789b9e4162419a5f194a899e90c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Tue, 10 Jun 2025 10:08:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/diy/components/diy/coupon.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/diy/components/diy/coupon.vue b/pages/diy/components/diy/coupon.vue index 4f0764cc..394b3493 100644 --- a/pages/diy/components/diy/coupon.vue +++ b/pages/diy/components/diy/coupon.vue @@ -357,7 +357,7 @@ if (res.data.code == 0) { let temp_list = this.data_list; app.globalData.showToast(res.data.msg, 'success'); - if (index) { + if (index == null) { temp_list = res.data.data.coupon || []; } else { temp_list[index] = res.data.data.coupon || {};