diff --git a/src/store/index.js b/src/store/index.js index a0527f8..9923635 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -30,11 +30,8 @@ export default createStore({ if (state.projectInfo.unlockMode === 1) { state.projectInfo.stageProcessList.forEach((t) => { t.statusName = '进行中' - const stageState = t.taskProcessList?.every((s) => { - s.statusName = s.status === 1 ? '已完成' : TASK_TYPES.toName[s.type] - return s.status === 1 - }) - stageState && (t.statusName = '已完成') + t.taskProcessList?.forEach((s) => s.statusName = s.status === 1 ? '已完成' : TASK_TYPES.toName[s.type]) + t.taskProcessList?.every((s) => s.status === 1) && (t.statusName = '已完成') }) return }