Explorar o código

进度条修改

LAPTOP-16IUEB3P\Lenovo %!s(int64=2) %!d(string=hai) anos
pai
achega
437c791786
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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
 			}
 	      }
 	    },