|
@@ -51,7 +51,7 @@ import Header from "@/components/inputModules/common/Header";
|
|
|
import HeaderOne from "@/components/inputModules/common/HeaderOne";
|
|
|
import pdf from "vue-pdf";
|
|
|
import { updateWordPack } from "@/utils/i18n";
|
|
|
-import { getToken } from "@/utils/auth";
|
|
|
+import { getToken, getConfig } from "@/utils/auth";
|
|
|
import { Base64 } from "js-base64";
|
|
|
|
|
|
import { TextbookAPI, LearnWebSI } from "@/api/ajax";
|
|
@@ -77,6 +77,7 @@ export default {
|
|
|
IsDownload: false, //是否可以下载
|
|
|
allList: null,
|
|
|
isData: false,
|
|
|
+ file_preview_url: "",
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
@@ -134,7 +135,7 @@ export default {
|
|
|
this.data = res;
|
|
|
this.loading = false;
|
|
|
this.attachment =
|
|
|
- `http://docpreview.utschool.cn/onlinePreview?url=` +
|
|
|
+ `${this.file_preview_url}/onlinePreview?url=` +
|
|
|
this.$route.query.url;
|
|
|
// this.attachment =
|
|
|
// process.env.VUE_APP_PDF_API +
|
|
@@ -148,6 +149,8 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
async created() {
|
|
|
+ let data = JSON.parse(getConfig());
|
|
|
+ this.file_preview_url = data.doc_preview_service_address;
|
|
|
await updateWordPack({
|
|
|
word_key_list: [
|
|
|
"Key5",
|