From e22bd7af7f455c518d86a15f4b213ba663457933 Mon Sep 17 00:00:00 2001 From: wyx <51903@qq.com> Date: Thu, 9 Mar 2023 10:49:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E9=A1=B9=E7=9B=AE=E9=97=AF=E5=85=B3?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E7=8A=B6=E6=80=81=E6=98=BE=E7=A4=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/index.js | 4 ++-- src/views/project/ProjectDetails.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index 8796c5a..9701359 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -38,8 +38,8 @@ export default createStore({ const stageState = t.taskProcessList?.some((s) => { s.unlock = true; s.statusName = "已完成"; - s.status === 2 ? (s.statusName = "进行中") : (!s.status && (s.statusName = TASK_TYPES.toName[s.type])); - return state.projectInfo.unlockMode === 2 ? s.status !== 1 : (s.status !== 1 && s.flag); + s.status !== 1 && (s.statusName = TASK_TYPES.toName[s.type]) + return state.projectInfo.unlockMode === 2 ? s.status !== 1 : (s.status !== 1 && s.flag) }); stageState && (t.statusName = "进行中"); return stageState; diff --git a/src/views/project/ProjectDetails.vue b/src/views/project/ProjectDetails.vue index b098e3e..b5507c5 100644 --- a/src/views/project/ProjectDetails.vue +++ b/src/views/project/ProjectDetails.vue @@ -364,7 +364,7 @@ const { commit, dispatch, state } = useStore() const store = useStore() const userInfo = computed(() => state.userInfo) const data = computed(() => state.projectInfo) - +console.log(data) onMounted(() => { dispatch('getProjectInfo', { projectId }) })