mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-10 19:36:48 +08:00
fix -- bug
This commit is contained in:
@@ -30,11 +30,8 @@ export default createStore({
|
|||||||
if (state.projectInfo.unlockMode === 1) {
|
if (state.projectInfo.unlockMode === 1) {
|
||||||
state.projectInfo.stageProcessList.forEach((t) => {
|
state.projectInfo.stageProcessList.forEach((t) => {
|
||||||
t.statusName = '进行中'
|
t.statusName = '进行中'
|
||||||
const stageState = t.taskProcessList?.every((s) => {
|
t.taskProcessList?.forEach((s) => s.statusName = s.status === 1 ? '已完成' : TASK_TYPES.toName[s.type])
|
||||||
s.statusName = s.status === 1 ? '已完成' : TASK_TYPES.toName[s.type]
|
t.taskProcessList?.every((s) => s.status === 1) && (t.statusName = '已完成')
|
||||||
return s.status === 1
|
|
||||||
})
|
|
||||||
stageState && (t.statusName = '已完成')
|
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user