Ver código fonte

修复在线访问PDFBUG

fanghuisheng 1 ano atrás
pai
commit
7ef93a78df

+ 3 - 3
src/pages/business/mhxf/fireReport/components/detailedPath.vue

@@ -21,7 +21,7 @@ const publicStores = publicStore(); //全局公共Store
 
 const dataList = reactive({
   pathUrl: "",
-  viewerUrl: import.meta.env.MODE === "production" ? "http://file.usky.cn/statics/pdf_js/web/viewer.html" : "http://172.16.120.165:9300/statics/pdf_js/web/viewer.html",
+  viewerUrl: "",
 });
 
 const { pathUrl, viewerUrl } = toRefs(dataList);
@@ -36,9 +36,9 @@ host = window.location.host;
 //#endif
 
 if (host.indexOf("172.16.120") != -1) {
-  viewerUrl.value = "http://172.16.120.165:13200/prod-api";
+  viewerUrl.value = "http://172.16.120.165:9300/statics/pdf_js/web/viewer.html";
 } else {
-  viewerUrl.value = "http://mobile.usky.cn:8099/prod-api";
+  viewerUrl.value = "http://file.usky.cn/statics/pdf_js/web/viewer.html";
 }
 
 watchEffect(() => {});