fix: clear client order editor dirty state

This commit is contained in:
2026-07-30 18:09:32 +08:00
parent 907794f9a7
commit 4e24d381c2
+3
View File
@@ -302,6 +302,7 @@ async function saveDraft() {
try {
const order = await store.saveDraft(structuredClone(form), tenantStore.company.companyName, editingId.value)
editingId.value = order.id
markEditorClean()
editorOpen.value = false
ElMessage.success('订单草稿已保存')
} catch (error) {
@@ -320,6 +321,7 @@ async function submitOrder() {
confirmButtonText: '前往企业资料',
cancelButtonText: '继续编辑草稿',
})
markEditorClean()
editorOpen.value = false
await router.push('/company/profile')
} catch (error) {
@@ -337,6 +339,7 @@ async function submitOrder() {
try {
saving.value = true
const order = await store.submit(structuredClone(form), tenantStore.company.companyName, editingId.value, tenantStore.company.auditStatus)
markEditorClean()
editorOpen.value = false
detailId.value = order.id
detailOpen.value = true