|
@@ -118,7 +118,10 @@ export default {
|
|
|
}
|
|
|
}).filter(m => !!m) // filter null element.
|
|
|
const enrollIndex = steps.findIndex(step => step?.isEnroll)
|
|
|
- return steps.slice(0, enrollIndex + 1)
|
|
|
+ const stepsByEnroll = steps.slice(0, enrollIndex + 1)
|
|
|
+ const enrollLastIndex = steps.findLastIndex(step => step?.isEnroll)
|
|
|
+ if (enrollIndex != enrollLastIndex && enrollLastIndex > -1) stepsByEnroll.push(steps[enrollLastIndex])
|
|
|
+ return stepsByEnroll
|
|
|
}
|
|
|
},
|
|
|
methods: {
|