Browse Source

mounted钩子渲染页面逻辑添加

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 9 months ago
parent
commit
62438c1a93
1 changed files with 11 additions and 2 deletions
  1. 11 2
      src/views/topology/3d/viewModel.vue

+ 11 - 2
src/views/topology/3d/viewModel.vue

@@ -1,11 +1,20 @@
 <template>
-  <div class="iframBox">
+  <div class="iframBox" v-if="pageReady">
     <iframe src="http://123.60.223.250:6080/#/viewModel?selectModel=1"></iframe>
   </div>
 </template>
 
 <script>
-export default {}
+export default {
+  data() {
+    return {
+      pageReady: false
+    }
+  },
+  mounted() {
+    this.pageReady = true
+  }
+}
 </script>
 
 <style lang="scss" scoped>