게시물 저장 중 추가 변경 보존 및 v1.10.0 반영

This commit is contained in:
2026-07-01 15:24:55 +09:00
parent 853bec747e
commit 0eca6b288e
11 changed files with 52 additions and 13 deletions

View File

@@ -96,7 +96,7 @@ const savePost = async (payload) => {
})
post.value = updatedPost
postForm.value?.markSaved()
postForm.value?.markSaved(payload)
postForm.value?.clearAutosave()
showToast('success', '변경 내용이 저장되었습니다.')
} catch (error) {
@@ -125,7 +125,7 @@ const autosaveDraftPost = async (payload) => {
})
post.value = updatedPost
postForm.value?.markSaved()
postForm.value?.markSaved(payload)
} catch (error) {
const msg = error?.data?.message || error?.message || '자동 저장에 실패했습니다.'
showToast('error', msg)

View File

@@ -53,7 +53,7 @@ const savePost = async (payload) => {
body: payload
})
postForm.value?.markSaved()
postForm.value?.markSaved(payload)
postForm.value?.clearAutosave()
postForm.value?.allowNextRouteLeave()
sessionStorage.setItem('SORI_ADMIN_POST_TOAST', JSON.stringify({
@@ -90,7 +90,7 @@ const createDraftAutosave = async (payload, options = {}) => {
body: payload
})
postForm.value?.markSaved()
postForm.value?.markSaved(payload)
postForm.value?.clearAutosave()
postForm.value?.allowNextRouteLeave()
if (!skipNavigate) {