diff --git a/src/components/YlTable/components/Tootips/Index.vue b/src/components/YlTable/components/Tootips/Index.vue
index 9b7f1dd..1e46a20 100644
--- a/src/components/YlTable/components/Tootips/Index.vue
+++ b/src/components/YlTable/components/Tootips/Index.vue
@@ -4,7 +4,7 @@ const content = defineModel<{ row: any; column: any; cellValue: any }>('content'
-
+
diff --git a/src/views/Home/components/CreateSurvey/components/IntelligentGeneration/Index.vue b/src/views/Home/components/CreateSurvey/components/IntelligentGeneration/Index.vue
index cd17d5f..2b953f1 100644
--- a/src/views/Home/components/CreateSurvey/components/IntelligentGeneration/Index.vue
+++ b/src/views/Home/components/CreateSurvey/components/IntelligentGeneration/Index.vue
@@ -7,47 +7,47 @@ const param = `token=${encodeURIComponent(localStorage.getItem('plantToken') as
// const url = host + path + param;
const url = host + path + param;
-const iframe = ref(null);
+// const iframe = ref(null);
-onMounted(() => {
- // 保存原始的window.open方法
- const originalOpen = window.open;
+// onMounted(() => {
+// // 保存原始的window.open方法
+// const originalOpen = window.open;
- // 监听iframe的load事件,确保iframe已完全加载
- iframe.value?.addEventListener('load', () => {
- try {
- const iframeWindow = iframe.value?.contentWindow;
+// // 监听iframe的load事件,确保iframe已完全加载
+// iframe.value?.addEventListener('load', () => {
+// try {
+// const iframeWindow = iframe.value?.contentWindow;
- // 尝试覆盖iframe的open方法
- if (iframeWindow) {
- // 方法一:直接覆盖
- try {
- iframeWindow.open = function (...args: any[]) {
- // console.log('iframe中的open方法被调用,参数:', args);
- // 使用父窗口的open方法打开
- return originalOpen.apply(window, args as any);
- };
- } catch (e) {
- // 方法二:如果直接覆盖失败,尝试使用defineProperty
- try {
- Object.defineProperty(iframeWindow, 'open', {
- value: function (...args: any[]) {
- // console.log('iframe中的open方法被调用,参数:', args);
- return originalOpen.apply(window, args as any);
- },
- writable: true,
- configurable: true
- });
- } catch (e2) {
- // console.error('无法覆盖iframe的open方法(defineProperty):', e2);
- }
- }
- }
- } catch (error) {
- console.error('无法覆盖iframe的open方法:', error);
- }
- });
-});
+// // 尝试覆盖iframe的open方法
+// if (iframeWindow) {
+// // 方法一:直接覆盖
+// try {
+// iframeWindow.open = function (...args: any[]) {
+// // console.log('iframe中的open方法被调用,参数:', args);
+// // 使用父窗口的open方法打开
+// return originalOpen.apply(window, args as any);
+// };
+// } catch (e) {
+// // 方法二:如果直接覆盖失败,尝试使用defineProperty
+// try {
+// Object.defineProperty(iframeWindow, 'open', {
+// value: function (...args: any[]) {
+// // console.log('iframe中的open方法被调用,参数:', args);
+// return originalOpen.apply(window, args as any);
+// },
+// writable: true,
+// configurable: true
+// });
+// } catch (e2) {
+// // console.error('无法覆盖iframe的open方法(defineProperty):', e2);
+// }
+// }
+// }
+// } catch (error) {
+// console.error('无法覆盖iframe的open方法:', error);
+// }
+// });
+// });