From 071e11b8f41ca10088e465f15edc202c80c5efab Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Thu, 24 Nov 2022 21:26:33 +0800 Subject: [PATCH] chore: update --- components/publish/PublishWidget.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/publish/PublishWidget.vue b/components/publish/PublishWidget.vue index 080722ae..f8a8933a 100644 --- a/components/publish/PublishWidget.vue +++ b/components/publish/PublishWidget.vue @@ -23,7 +23,7 @@ const status = $computed(() => { }) const currentVisibility = $computed(() => { - return STATUS_VISIBILITIES.find(v => v.value === status.visibility)! + return STATUS_VISIBILITIES.find(v => v.value === status.visibility) || STATUS_VISIBILITIES[0] }) let isUploading = $ref(false) @@ -148,9 +148,12 @@ onUnmounted(() => {
+
+ - - -
-