Ver código fonte

模具更新处跳转

Reiskuchen 5 anos atrás
pai
commit
db55a8445f
1 arquivos alterados com 8 adições e 8 exclusões
  1. 8 8
      ys_vue/src/views/mold/moldDetail.vue

+ 8 - 8
ys_vue/src/views/mold/moldDetail.vue

@@ -745,14 +745,15 @@
 
             toAnotherMould(id){
                 //简单粗暴的方法到另一个模具详情
-                var currentRoute = this.$route.path.split("/");
-                if (currentRoute.length == 3 && currentRoute[1] == "moldList") {
-                    this.$router.go(0);
-                }
-                this.$router.replace('/moldList/' + id);
+                // var currentRoute = this.$route.path.split("/");
+                // if (currentRoute.length == 3 && currentRoute[1] == "moldList") {
+                //     this.$router.go(0);
+                // }
+                // this.$router.replace('/moldList/' + id);
+                
                 //更加简单粗暴地方法
-                // this.detailId = id;
-                // this.getDetail();
+                this.detailId = id;
+                this.getDetail();
             },
 
             //标签页面切换时
@@ -1633,7 +1634,6 @@
             };
         },
         mounted() {
-            // this.getMsg();
             this.getDetail();
         }
     };