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: {