|
@@ -33,8 +33,9 @@ export default {
|
|
|
const allModels = this.generation.models
|
|
|
const applyOpts = Object.values(allOpts)
|
|
|
.filter(opt => !opt.decisionMaking && opt.stepsVisible && opt.value > allOpts.primary.value)
|
|
|
- const enrollIdx = applyOpts.findIndex(opt => allModels.find(m => m.option == opt).models.some(this.isGroupEnrolled))
|
|
|
- return enrollIdx > -1 ? applyOpts.slice(0, enrollIdx) : applyOpts
|
|
|
+ const enrollIdx = applyOpts.findIndex(opt => allModels.find(m => m.option == opt).models?.some(this.isGroupEnrolled))
|
|
|
+ const results = enrollIdx > -1 ? applyOpts.slice(0, enrollIdx) : applyOpts
|
|
|
+ return results.filter(opt => allModels.find(m => m.option == opt).models?.some(i => i.isRecommend)) // 容错处理,清除没有正常推荐的步骤
|
|
|
}
|
|
|
}
|
|
|
}
|