diff --git a/frontend/src/features/admin/modules/shipping-order-document-profiles/OrderProfileEditorPage.vue b/frontend/src/features/admin/modules/shipping-order-document-profiles/OrderProfileEditorPage.vue index 6f3e0d06..55efb327 100644 --- a/frontend/src/features/admin/modules/shipping-order-document-profiles/OrderProfileEditorPage.vue +++ b/frontend/src/features/admin/modules/shipping-order-document-profiles/OrderProfileEditorPage.vue @@ -1973,7 +1973,7 @@ const save = async (automatic = false) => { saving.value = true; saveState.value = 'saving'; const savingChangeVersion = localChangeVersion; - const xfaEpochAtStart = hasValueSourceMapping.value ? valueAdapterDesk.editEpoch.value : 0; + const xfaEpochAtStart = hasValueSourceMapping.value ? valueAdapterDesk.editEpoch : 0; let saveSucceeded = false; let shouldRescheduleAutosave = false; try { @@ -2013,7 +2013,7 @@ const save = async (automatic = false) => { // [STEP] PUT 成功即解锁「保存中」;applySavedDraft 不得继续占住保存态。 // 若保存飞行中用户又选了数据源,先抓本地快照,避免随后被服务端旧草稿冲掉。 const concurrentXfaEdit = hasValueSourceMapping.value - && valueAdapterDesk.editEpoch.value !== xfaEpochAtStart + && valueAdapterDesk.editEpoch !== xfaEpochAtStart ? valueAdapterDesk.captureConcurrentEditState() : null; saving.value = false; diff --git a/frontend/src/features/admin/modules/shipping-order-document-profiles/composables/useOrderProfileValueAdapter.ts b/frontend/src/features/admin/modules/shipping-order-document-profiles/composables/useOrderProfileValueAdapter.ts index 29ca5b6a..0e2fbb18 100644 --- a/frontend/src/features/admin/modules/shipping-order-document-profiles/composables/useOrderProfileValueAdapter.ts +++ b/frontend/src/features/admin/modules/shipping-order-document-profiles/composables/useOrderProfileValueAdapter.ts @@ -926,7 +926,7 @@ export function useOrderProfileValueAdapter(options: UseOrderProfileValueAdapter remappedBindings.push(binding); continue; } - const nextLayoutId = String(candidates[0].layout_id); + const nextLayoutId = String(candidates[0]!.layout_id); didRemapOrphanLayouts = true; remappedBindings.push({ ...binding, field_layout_id: nextLayoutId }); }