feat: refresh context after post
This commit is contained in:
parent
f7a3d9c401
commit
12bb0bbb2d
3 changed files with 6 additions and 2 deletions
|
@ -19,6 +19,8 @@ const {
|
|||
expanded?: boolean
|
||||
}>()
|
||||
|
||||
const emit = defineEmits(['published'])
|
||||
|
||||
const { t } = useI18n()
|
||||
// eslint-disable-next-line prefer-const
|
||||
let { draft, isEmpty } = $(useDraft(draftKey, initial))
|
||||
|
@ -128,6 +130,7 @@ async function publish() {
|
|||
|
||||
draft = initial()
|
||||
isPublishDialogOpen.value = false
|
||||
emit('published')
|
||||
}
|
||||
finally {
|
||||
isSending = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue