@@ -40,7 +40,7 @@
data () {
return {
stepList: [],
- active:-1
+ active:-1
};
},
watch: {
@@ -54,6 +54,8 @@
const active = this.stepList.findIndex((item) => item.number === 0)
if(active==-1){
this.active = this.stepList.length-1
+ }else{
+ this.active = active - 1
}