fix(publish): empty content
This commit is contained in:
parent
2ed22678ed
commit
a812ea098f
2 changed files with 10 additions and 1 deletions
|
@ -21,7 +21,10 @@ let isSending = $ref(false)
|
|||
let { draft } = $(useDraft(draftKey, inReplyToId))
|
||||
|
||||
const { editor } = useTiptap({
|
||||
content: toRef(draft.params, 'status'),
|
||||
content: computed({
|
||||
get: () => draft.params.status,
|
||||
set: newVal => draft.params.status = newVal,
|
||||
}),
|
||||
placeholder,
|
||||
autofocus: isExpanded,
|
||||
onSubmit: publish,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue