|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<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>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -21,6 +21,8 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
|
|
+ const envT = document.getElementById('envT')
|
|
|
|
+ envT.countWindow.postMessage('zhihui', '*')
|
|
var height = window.innerHeight > document.body.clientHeight ? window.innerHeight : document.body.clientHeight
|
|
var height = window.innerHeight > document.body.clientHeight ? window.innerHeight : document.body.clientHeight
|
|
this.iframeHeight = height + 'px'
|
|
this.iframeHeight = height + 'px'
|
|
}
|
|
}
|