同步现场代码 修改电网一张图页面
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
frameborder="0"
|
||||
style="width: 100%; height: 100%; border: 0px solid"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { onMounted, ref, nextTick } from 'vue'
|
||||
@@ -21,7 +21,6 @@ const height = mainHeight(20)
|
||||
|
||||
const num = ref(0)
|
||||
const loading = ref(true)
|
||||
// console.log("🚀 ~ num:", window.location.origin)
|
||||
const iframeRef: any = ref(null)
|
||||
// const iframeSrc = 'http://www.jibei1.com:8088/#/harmonic-boot/detailedAnalysis/responsibilityqr'
|
||||
const iframeSrc = window.location.origin + '/jbv2/#/harmonic-boot/area/OnlineRateqr'
|
||||
@@ -29,10 +28,12 @@ const iframeSrc = window.location.origin + '/jbv2/#/harmonic-boot/area/OnlineRat
|
||||
onMounted(() => {
|
||||
iframeRef.value.onload = () => {
|
||||
iframeRef.value.contentWindow.postMessage({ info: window.localStorage.getItem('adminInfo') }, '*')
|
||||
// setTimeout(() => {
|
||||
// num.value++
|
||||
loading.value = false
|
||||
// }, 0)
|
||||
setTimeout(() => {
|
||||
if (loading.value) {
|
||||
}
|
||||
++num.value
|
||||
loading.value = false
|
||||
}, 0)
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user