Explorar o código

注释演练跟踪默认状态值代码

jiawuxian hai 1 ano
pai
achega
ea7e067385
Modificáronse 1 ficheiros con 10 adicións e 10 borrados
  1. 10 10
      src/views/core/drill/task/index.vue

+ 10 - 10
src/views/core/drill/task/index.vue

@@ -371,16 +371,16 @@ export default {
     this.getList();
     this.getTaskStatus();
   },
-  beforeRouteEnter(to,from,next){
-    console.log(from,'to')
-    if(from.path === '/home'){
-      next(vm=>{
-        vm.queryParams.status = parseInt(to.query.status);
-      })
-    }else {
-      next()
-    }
-  },
+  // beforeRouteEnter(to,from,next){
+  //   console.log(from,'to')
+  //   if(from.path === '/home'){
+  //     next(vm=>{
+  //       vm.queryParams.status = parseInt(to.query.status);
+  //     })
+  //   }else {
+  //     next()
+  //   }
+  // },
   computed: {
     ...mapGetters(["orgId", "orgName"]),
   },