qinzhipeng_v@didiglobal.com 4 yıl önce
ebeveyn
işleme
694b444cbd
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      src/views/automation/index.vue

+ 3 - 1
src/views/automation/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <iframe :src="envUrl" style="width:100%;" scrolling="yes" frameborder="0" :height="iframeHeight" />
+    <iframe id="envT" :src="envUrl" style="width:100%;" scrolling="yes" frameborder="0" :height="iframeHeight" />
   </div>
 </template>
 
@@ -21,6 +21,8 @@ export default {
     }
   },
   mounted() {
+    const envT = document.getElementById('envT')
+    envT.countWindow.postMessage('zhihui', '*')
     var height = window.innerHeight > document.body.clientHeight ? window.innerHeight : document.body.clientHeight
     this.iframeHeight = height + 'px'
   }