Browse Source

修改pdf未展示问题

秦鹏 3 years ago
parent
commit
0e783835df
2 changed files with 2 additions and 4 deletions
  1. 0 2
      src/components/teacher-dev/Textbook.vue
  2. 2 2
      src/views/teacher-dev/Preview.vue

+ 0 - 2
src/components/teacher-dev/Textbook.vue

@@ -54,8 +54,6 @@ export default {
         path: "/Preview",
         query: {
           id: item.id,
-          invok_module: "GCLS-Personal",
-
         },
       });
     },

+ 2 - 2
src/views/teacher-dev/Preview.vue

@@ -298,7 +298,7 @@ export default {
               // this.attachment[0].fileRelativePath =
               //   process.env.VUE_APP_BASE_API + this.attachment[0].fileRelativePath;
               this.attachment[0].fileRelativePath =
-                process.env.VUE_APP_PDF_API + this.attachment[0].fileRelativePath;
+                process.env.VUE_APP_BASE_API + this.attachment[0].fileRelativePath;
               console.log(this.attachment[0].fileRelativePath);
               this.getNumPages();
             }
@@ -340,7 +340,7 @@ export default {
               // this.attachment[0].fileRelativePath =
               //   process.env.VUE_APP_BASE_API + this.attachment[0].fileRelativePath;
               this.attachment[0].fileRelativePath =
-                process.env.VUE_APP_PDF_API + this.attachment[0].fileRelativePath;
+                process.env.VUE_APP_BASE_API + this.attachment[0].fileRelativePath;
               console.log(this.attachment[0].fileRelativePath);
               this.getNumPages();
             }