|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div v-loading="loading">
|
|
|
- <iframe :src="`http://localhost:7100/#/taskTest?bizId=${bizid}&keyType=${type}_${id}&hiddenNav=true`" style="width: calc(100vw - 225px); margin-left: 10px;" :height="iframeHeight" scrolling="auto" frameborder="0" />
|
|
|
+ <iframe :src="src" style="width: calc(100vw - 225px); margin-left: 10px;" :height="iframeHeight" scrolling="auto" frameborder="0" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -17,6 +17,13 @@ export default {
|
|
|
loading: true
|
|
|
}
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ ...mapGetters(['bizId']),
|
|
|
+ src() {
|
|
|
+ const src = `http://localhost:7100/#/taskTest?bizId=${this.bizid}&keyType=${this.type}_${this.id}&hiddenNav=true`
|
|
|
+ return src
|
|
|
+ }
|
|
|
+ },
|
|
|
mounted() {
|
|
|
this.iframeHeight = (document.body.clientHeight - 80) + 'px'
|
|
|
window.addEventListener('message', this.onEventListener, false)
|