mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-10 19:36:48 +08:00
fix:项目闯关模式状态显示问题
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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 })
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user