LAPTOP-16IUEB3P\Lenovo 2 лет назад
Родитель
Сommit
437c791786
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      src/views/produceOrder/components/progressBox.vue

+ 3 - 1
src/views/produceOrder/components/progressBox.vue

@@ -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
 			}
 	      }
 	    },