浏览代码

解决跳转到任务清单失败问题

zhuliu 1 年之前
父节点
当前提交
9bf931620f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/utils/model/ImportProgress/index.vue

+ 2 - 2
src/utils/model/ImportProgress/index.vue

@@ -29,6 +29,7 @@
 
 <script>
 import { getFileMD5, createFileChunk } from "@/utils/file";
+import router from '@/router'
 export default {
   components: {},
   props: {},
@@ -97,7 +98,6 @@ export default {
         // return
         // fileChunks = [1,2,3,4,5]
         this.len = fileChunks.length + 3
-        
           getFileMD5(this.form.file, async (md5) => {
             this.record('文件MD5:' + md5)
             var time = new Date().getTime()
@@ -157,7 +157,7 @@ export default {
         //跳转到任务清单
         toTaskList() {
             // 传专题库id是查到当前专题库的导入任务,不传是查看所有导入任务
-            this.$router.push({
+            router.push({
                 path: "/taskList",
                 // query:{
                 //     importToId:this.form.importToId