From 6071e4dc86e0ba583a1a832f027571c98d33721a Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Thu, 23 Feb 2023 15:58:06 +0800 Subject: [PATCH] fix -- bug --- src/store/index.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 }