From 30f2484efa96f5c8035ce64f3d02f262e5fa3a93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Tue, 1 Aug 2023 17:42:37 +0800 Subject: [PATCH] fix: required --- components/common/CommonTabs.vue | 2 +- .../NotificationSubscribePushNotificationError.vue | 2 +- components/publish/PublishLanguagePicker.vue | 2 +- components/publish/PublishVisibilityPicker.vue | 4 +++- nuxt.config.ts | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/components/common/CommonTabs.vue b/components/common/CommonTabs.vue index 8ab25672..1967fe08 100644 --- a/components/common/CommonTabs.vue +++ b/components/common/CommonTabs.vue @@ -8,7 +8,7 @@ const { options, command } = defineProps<{ command?: boolean }>() -const modelValue = defineModel() +const modelValue = defineModel({ required: true }) const tabs = $computed(() => { return options.map((option) => { diff --git a/components/notification/NotificationSubscribePushNotificationError.vue b/components/notification/NotificationSubscribePushNotificationError.vue index f4202eb9..682ce9ae 100644 --- a/components/notification/NotificationSubscribePushNotificationError.vue +++ b/components/notification/NotificationSubscribePushNotificationError.vue @@ -3,7 +3,7 @@ defineProps<{ title?: string message: string }>() -const modelValue = defineModel() +const modelValue = defineModel({ required: true })