Explorar el Código

[Fix 0000] CAD预览器404问题

houzekong hace 10 meses
padre
commit
19ee173be8
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/views/vent/performance/comment/CADModal.vue

+ 2 - 1
src/views/vent/performance/comment/CADModal.vue

@@ -45,7 +45,8 @@
       fileid.value = record.id;
       filename.value = record.fileName;
     } else {
-      const origin = import.meta.env.PROD ? 'http://182.92.126.35:8092' : window.location.origin;
+      // 当以 iframe 模式运行时,origin 在生产模式下需要指向本项目公司端所部署的地址
+      const origin = import.meta.env.PROD ? 'http://10.10.150.72:8092' : window.location.origin;
       // const origin = import.meta.env.DEV ? 'http://182.92.126.35:8092' : window.location.origin;
       iframesrc.value = `${origin}/fileManager/cad-viewer?${AUTO_LOGIN_URL_QUERY.key}=${AUTO_LOGIN_URL_QUERY.val}&id=${record.id}&filename=${record.fileName}`;
     }