|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
- <div class="layout-view-bg-white flex mt1" :style="{ height: `calc(100vh - ${setIframeHeight}`, border: 'none' }" v-loading="iframeLoading">
|
|
|
- <iframe :src="iframeUrl" frameborder="0" height="100%" width="100%" id="iframe" v-show="!iframeLoading"></iframe>
|
|
|
- </div>
|
|
|
+ <div class="layout-view-bg-white flex mt1" :style="{ height: `calc(100vh - ${setIframeHeight}`, border: 'none' }" v-loading="iframeLoading">
|
|
|
+ <iframe :src="iframeUrl" frameborder="0" height="100%" width="100%" id="iframe" v-show="!iframeLoading"></iframe>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
@@ -19,7 +19,7 @@ export default defineComponent({
|
|
|
});
|
|
|
// 初始化页面加载 loading
|
|
|
const initIframeLoad = () => {
|
|
|
- state.iframeUrl = <any>route.meta?.isLink;
|
|
|
+ state.iframeUrl = <any>route.meta?.linkUrl;
|
|
|
nextTick(() => {
|
|
|
state.iframeLoading = true;
|
|
|
const iframe = document.getElementById('iframe');
|