Browse Source

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

zhuliu 1 năm trước cách đây
mục cha
commit
9bf931620f
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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