From 38fde39aa7574f2bc130dedee7c0961199fec421 Mon Sep 17 00:00:00 2001 From: linxi Date: Mon, 3 Mar 2025 14:56:23 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E7=A4=BC=E5=93=81=E5=8D=A1?= =?UTF-8?q?=E7=AC=AC=E4=B8=80=E4=B8=AA=E8=B7=9F=E6=9C=80=E5=90=8E=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E9=87=8D=E5=A4=8D=E6=98=BE=E7=A4=BA=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg_user/views/gift/gift.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg_user/views/gift/gift.vue b/pkg_user/views/gift/gift.vue index 75bd6f3..92925d7 100644 --- a/pkg_user/views/gift/gift.vue +++ b/pkg_user/views/gift/gift.vue @@ -263,7 +263,7 @@ export default { cartId: this.cartId, } getGiftCardSendOrderConfirm(params).then(res => { - this.coverList = [...res.data.giftCardTemplates, res.data.specialGiftCardTemplate] + this.coverList = res.data.giftCardTemplates.map(e => e.id).includes(res.data.specialGiftCardTemplate.id) ? [...res.data.giftCardTemplates] : [...res.data.giftCardTemplates, res.data.specialGiftCardTemplate] this.giftNotice = res.data.giftCardGiftNotice this.orderKey = res.data.orderKey this.goodsInfo = res.data.cartInfo[0]