From 1baf5de741d1c5005de66f01e06ff701cfb85892 Mon Sep 17 00:00:00 2001 From: linxi Date: Fri, 28 Feb 2025 09:29:16 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E8=AE=A2=E5=8D=95=E4=B8=8D?= =?UTF-8?q?=E5=AD=98=E5=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg_user/views/gift/components/GiftCard.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg_user/views/gift/components/GiftCard.vue b/pkg_user/views/gift/components/GiftCard.vue index 8b0acb0..2a997c9 100644 --- a/pkg_user/views/gift/components/GiftCard.vue +++ b/pkg_user/views/gift/components/GiftCard.vue @@ -106,12 +106,12 @@ export default { deep: true }, // 修改后的监听器 - 'myGift': { + myGift: { handler(newVal) { - - this.order = newVal.orderId + this.order = newVal && newVal.orderId }, - deep: true + deep: true, + immediate: true } }, methods: {