diff --git a/components/publish/PublishWidget.vue b/components/publish/PublishWidget.vue index 16fe65ad..5d140f7a 100644 --- a/components/publish/PublishWidget.vue +++ b/components/publish/PublishWidget.vue @@ -16,9 +16,10 @@ const { expanded?: boolean }>() -let isExpanded = $ref(_expanded) let isSending = $ref(false) let { draft } = $(useDraft(draftKey, inReplyToId)) +const isExistDraft = $computed(() => !!draft.params.status && draft.params.status !== '
') +let isExpanded = $ref(isExistDraft || _expanded) const { editor } = useTiptap({ content: computed({ @@ -180,7 +181,7 @@ onUnmounted(() => {