From 53c88484130d109dcc0cbb21bc0bb20a1b3220bd Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Sat, 08 May 2021 15:27:55 +0800
Subject: [PATCH] iframe替换

---
 src/views/dataL/dataL.vue |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/views/dataL/dataL.vue b/src/views/dataL/dataL.vue
index bfba118..49112ac 100644
--- a/src/views/dataL/dataL.vue
+++ b/src/views/dataL/dataL.vue
@@ -1186,7 +1186,7 @@
       this.startEcharts01();
     },
     getMap() {
-      window.frames[0].init("DetailMap", {
+      window.frames[1].init("DetailMap", {
         x: this.a.jd,
         y: this.a.wd,
       });
@@ -1297,15 +1297,15 @@
     // this.doEvents();
     // var timel = setTimeout(() => {
     this.$refs.detailMap.onload = () => {
-      // window.frames[0].init("DetailMap", {
+      // window.frames[1].init("DetailMap", {
       //   x: this.a.jd,
       //   y: this.a.wd,
       // });
-      if (window.frames[0].init) {
+      if (window.frames[1].init) {
         this.getMap();
       } else {
         // this.re();
-        console.log(`没有找到到window.frames[0].init`);
+        console.log(`没有找到到window.frames[1].init`);
       }
     };
   },

--
Gitblit v1.9.3