浏览代码

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

jiawuxian 1 年之前
父节点
当前提交
ea7e067385
共有 1 个文件被更改,包括 10 次插入10 次删除
  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"]),
   },