|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <jy-iframe-page-layout ref="pageIframe" :src="iframeSrc" @change="onChange" @page-register="onUpdateSrc">
|
|
|
+ <jy-iframe-page-layout ref="pageIframe" :src="iframeSrc" @change="onChange" @diff="onUpdateSrc">
|
|
|
<template v-slot:loading>
|
|
|
<logo-loading></logo-loading>
|
|
|
</template>
|
|
@@ -28,11 +28,13 @@ export default {
|
|
|
next()
|
|
|
},
|
|
|
methods: {
|
|
|
- onUpdateSrc (data) {
|
|
|
- // 链接不匹配时,需刷新
|
|
|
- if (this.$refs.pageIframe.pageLink !== data.link) {
|
|
|
- this.$refs.pageIframe.pageLink = data.link
|
|
|
- }
|
|
|
+ onUpdateSrc () {
|
|
|
+ // 链接不匹配时,需刷新 iframe
|
|
|
+ try {
|
|
|
+ this.$refs.pageIframe.hideLoading(1000)
|
|
|
+ this.$refs.pageIframe.pageLoading = true
|
|
|
+ this.$refs.pageIframe.$refs.iframe.contentWindow.location.href = this.$refs.pageIframe.pageLink
|
|
|
+ } catch (e) {}
|
|
|
},
|
|
|
onChange (data) {
|
|
|
this.$router.push({
|