Przeglądaj źródła

进度条修改

LAPTOP-16IUEB3P\Lenovo 2 lat temu
rodzic
commit
437c791786

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