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 }) })