fix:项目闯关模式状态显示问题

This commit is contained in:
wyx
2023-03-09 10:49:30 +08:00
parent 050a9ed4c6
commit e22bd7af7f
2 changed files with 3 additions and 3 deletions

View File

@@ -38,8 +38,8 @@ export default createStore({
const stageState = t.taskProcessList?.some((s) => { const stageState = t.taskProcessList?.some((s) => {
s.unlock = true; s.unlock = true;
s.statusName = "已完成"; s.statusName = "已完成";
s.status === 2 ? (s.statusName = "进行中") : (!s.status && (s.statusName = TASK_TYPES.toName[s.type])); s.status !== 1 && (s.statusName = TASK_TYPES.toName[s.type])
return state.projectInfo.unlockMode === 2 ? s.status !== 1 : (s.status !== 1 && s.flag); return state.projectInfo.unlockMode === 2 ? s.status !== 1 : (s.status !== 1 && s.flag)
}); });
stageState && (t.statusName = "进行中"); stageState && (t.statusName = "进行中");
return stageState; return stageState;

View File

@@ -364,7 +364,7 @@ const { commit, dispatch, state } = useStore()
const store = useStore() const store = useStore()
const userInfo = computed(() => state.userInfo) const userInfo = computed(() => state.userInfo)
const data = computed(() => state.projectInfo) const data = computed(() => state.projectInfo)
console.log(data)
onMounted(() => { onMounted(() => {
dispatch('getProjectInfo', { projectId }) dispatch('getProjectInfo', { projectId })
}) })