From 0b5b3be7d2bb1f61bc050015812e50e8ad08957f Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Wed, 22 Feb 2023 03:24:19 +0800 Subject: [PATCH] fix bug --- src/store/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index efdd06d..8704ed2 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -62,10 +62,8 @@ export default createStore({ } state.routerInfo.statusName = '进行中' if (state.routerInfo.unlockMode === 1) { - state.routerInfo.taskBoList?.every((s) => { - s.statusName = s.status === 1 ? '已完成' : TASK_TYPES.toName[s.type] - return s.status === 1 - }) && (state.routerInfo.statusName = '已完成') + state.routerInfo.taskBoList?.forEach((s) => s.statusName = (s.status === 1) ? '已完成' : TASK_TYPES.toName[s.type]) + state.routerInfo.taskBoList?.every((s) => s.status === 1) && (state.routerInfo.statusName = '已完成') return } state.routerInfo.statusName = '已完成'