Skip to content
Snippets Groups Projects
Commit e63c3b55 authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Move adding of load event listener of legacy iFrame to mounted hook

parent d48cdf84
No related branches found
No related tags found
1 merge request!1281Resolve "Some legacy pages apparently get build up/rendered twice"
Pipeline #135255 failed
......@@ -24,7 +24,6 @@
:src="iFrameSrc"
:height="iFrameHeight + 'px'"
class="iframe-fullsize"
@load="load"
ref="contentIFrame"
></iframe>
</template>
......@@ -132,6 +131,7 @@ export default {
},
},
mounted() {
this.$refs.contentIFrame.addEventListener("load", (e) => {this.load()});
this.iFrameSrc = "/django" + this.$route.path + this.queryString;
},
name: "LegacyBaseTemplate",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment