From c8aa93c4d72c738160eff648d3cb7ebe058cfbd0 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Wed, 10 Jul 2024 17:07:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=BF=9B=E8=A1=8C=E4=B8=AD?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index 13f1a6f..9111ef0 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -101,7 +101,7 @@ export default createStore({ } state.routerInfo.statusName = '进行中' if (state.routerInfo.unlockMode === 1) { - state.routerInfo.taskBoList?.forEach((s) => s.statusName = (s.status === 1) ? '已完成' : TASK_TYPES.toName[s.type]) + state.routerInfo.taskBoList?.forEach((s) => s.statusName = (s.status === 1) ? "已完成" : s.status === 2 ? (s.statusName = "进行中") : TASK_TYPES.toName[s.type]); state.routerInfo.taskBoList?.every((s) => s.status === 1) && (state.routerInfo.statusName = '已完成') return } @@ -109,7 +109,7 @@ export default createStore({ state.routerInfo.taskBoList?.some((s) => { s.unlock = true s.statusName = '已完成' - s.status !== 1 && (s.statusName = TASK_TYPES.toName[s.type]) + s.status === 2 ? (s.statusName = "进行中") : (!s.status && (s.statusName = TASK_TYPES.toName[s.type])); return state.routerInfo.unlockMode === 2 ? s.status !== 1 : (s.status !== 1 && s.flag) }) && (state.routerInfo.statusName = '进行中') },