同步现场数据
This commit is contained in:
@@ -22,15 +22,16 @@ 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 = 'http://www.jibei1.com:8088/#/harmonic-boot/detailedAnalysis/responsibilityqr'
|
||||
const iframeSrc = window.location.origin + '/jbv2/#/harmonic-boot/detailedAnalysis/responsibilityqr'
|
||||
|
||||
onMounted(() => {
|
||||
iframeRef.value.onload = () => {
|
||||
iframeRef.value.contentWindow.postMessage({ info: window.localStorage.getItem('adminInfo') }, '*')
|
||||
setTimeout(() => {
|
||||
num.value++
|
||||
loading.value = false
|
||||
}, 0)
|
||||
// setTimeout(() => {
|
||||
// num.value++
|
||||
loading.value = false
|
||||
// }, 0)
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user