diff --git a/src/stores/project.ts b/src/stores/project.ts index 68bed8c..63f9d41 100644 --- a/src/stores/project.ts +++ b/src/stores/project.ts @@ -32,7 +32,7 @@ function createStore() { if (_dataChangedUnlisten) return _dataChangedUnlisten _dataChangedUnlisten = await listen('df-data-changed', (event) => { const { entity } = event.payload - // 按 entity 调对应 load 刷新(action 仅语义标识,刷新统一走 load 全量拉取) + // 按 entity 调对应 load 刷新(CR-260615-19:action 当前未消费,为未来 delete 本地移除等差异化刷新预留,统一 load 全量拉取) if (entity === 'project') { void projectsStore.loadProjects() } else if (entity === 'task') { diff --git a/src/stores/project/workflow.ts b/src/stores/project/workflow.ts index 282af33..6ce8cfd 100644 --- a/src/stores/project/workflow.ts +++ b/src/stores/project/workflow.ts @@ -63,10 +63,9 @@ export function createWorkflowStore() { ) { if (!state.pendingApproval) return const selectType = state.pendingApproval.select_type ?? 'single' - // 单选取首项(后端 decision 为单值);多选 decision 取首项作占位(后端按 decisions 走) - const decision = selectType === 'multiple' - ? (decisions[0] ?? '') - : (decisions[0] ?? '') + // CR-260615-18:删死逻辑三元(原 selectType 多/单分支返回值相同) + // 单选取首项(后端 decision 单值);多选 decision 取首项占位(后端按 decisions 走) + const decision = decisions[0] ?? '' try { // R-PD-5: 透传 options 闭环后端校验(options 非空时 decision 必须 ∈ options,否则 IPC 报错)。