|
@@ -95,6 +95,7 @@ export default {
|
|
const dmOpts = allOpts.filter(opt => opt.stepsVisible && opt.decisionMaking)
|
|
const dmOpts = allOpts.filter(opt => opt.stepsVisible && opt.decisionMaking)
|
|
const steps = dmOpts.map(opt => {
|
|
const steps = dmOpts.map(opt => {
|
|
const genModel = this.generation.models.find(gm => gm.option == opt)
|
|
const genModel = this.generation.models.find(gm => gm.option == opt)
|
|
|
|
+ if (!genModel || !genModel.models?.length) return null
|
|
const prevName = allOpts.find(item => item.value == opt.value - 1).title
|
|
const prevName = allOpts.find(item => item.value == opt.value - 1).title
|
|
const nextName = allOpts.find(item => item.value == opt.value + 1).title
|
|
const nextName = allOpts.find(item => item.value == opt.value + 1).title
|
|
const nextRecommend = genModel.models.find(item => item.nextRecommend)
|
|
const nextRecommend = genModel.models.find(item => item.nextRecommend)
|
|
@@ -113,7 +114,7 @@ export default {
|
|
nextRecommend
|
|
nextRecommend
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- const enrollIndex = steps.findIndex(step => step.isEnroll)
|
|
|
|
|
|
+ const enrollIndex = steps.findIndex(step => step?.isEnroll)
|
|
return steps.slice(0, enrollIndex + 1)
|
|
return steps.slice(0, enrollIndex + 1)
|
|
}
|
|
}
|
|
},
|
|
},
|