浏览代码

路由带参数

zhouna 5 年之前
父节点
当前提交
de2f9fd6f7
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      src/components/qualityControl/AutoTestTask.vue

+ 6 - 1
src/components/qualityControl/AutoTestTask.vue

@@ -89,9 +89,14 @@
     },
     methods: {
       toTaskDetail(id){
+        const pam = this.searched ? {
+          currentPage: this.currentPage,
+          filter: this.filter,
+          id
+        } : {currentPage: this.currentPage,id};
          this.$router.push({
            name:'TaskDetail',
-           params: {id}
+           params: pam
          })
       },
       filterDatas(){