|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<main class="smp-content" :class="{'isIframe':isIframe}">
|
|
|
- <iframe v-if="isIframe" ref="myIframe" :src="iframeURL" width="100%" height="100%" frameborder="0" scrolling="yes"></iframe>
|
|
|
+ <iframe :key="iframeIndex" v-if="isIframe" ref="myIframe" :src="iframeURL" width="100%" height="100%" frameborder="0" scrolling="yes"></iframe>
|
|
|
<router-view v-else />
|
|
|
</main>
|
|
|
</template>
|
|
@@ -12,12 +12,14 @@ export default {
|
|
|
data () {
|
|
|
return {
|
|
|
iframeURL: this.addParams(this.$route.meta.iframeURL),
|
|
|
+ iframeIndex: 0,
|
|
|
isIframe: false
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
$route () {
|
|
|
this.iframeURL = this.addParams(this.$route.meta.iframeURL)
|
|
|
+ this.iframeIndex++
|
|
|
this.initUrl()
|
|
|
}
|
|
|
},
|