|
@@ -35,7 +35,7 @@
|
|
|
import { onMounted } from 'vue';
|
|
|
import CADViewer from '/@/views/vent/performance/fileDetail/commen/CADViewer.vue';
|
|
|
import { useGlobSetting } from '/@/hooks/setting';
|
|
|
- import { AUTO_LOGIN_URL_QUERY } from '/@/router/constant';
|
|
|
+ import { AUTO_LOGIN_URL_QUERY, SKIP_SSO_URL_QUERY } from '/@/router/constant';
|
|
|
|
|
|
const { sysOrgCode } = useGlobSetting();
|
|
|
// 不是布尔台的使用 mxcad 模式,是布尔台的使用 iframe 模式以避免“法律风险”
|
|
@@ -60,7 +60,7 @@
|
|
|
// 当以 iframe 模式运行时,origin 在生产模式下需要指向本项目公司端所部署的地址
|
|
|
const origin = import.meta.env.PROD ? 'http://10.248.235.101: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}`;
|
|
|
+ iframesrc.value = `${origin}/fileManager/cad-viewer?${SKIP_SSO_URL_QUERY.key}=${SKIP_SSO_URL_QUERY.val}&${AUTO_LOGIN_URL_QUERY.key}=${AUTO_LOGIN_URL_QUERY.val}&id=${record.id}&filename=${record.fileName}`;
|
|
|
}
|
|
|
});
|
|
|
|