liulingling.177216
2024-08-26 349f1cfc5fa77fbc636d542df0d8050fddec48c2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<template>
  <div class="app-container":style="'height:'+ height">
    <iframe :src="srcUrl" frameborder="no" style="width: 100%;height: 100%" scrolling="auto" />
  </div>
</template>
 
<script>
    export default {
      data() {
        return {
          srcUrl:"",
          height: document.documentElement.clientHeight - 94.5 + "px;",
          loading: false
        }
      },
      created() {
        this.srcUrl=this.$route.query.modelCode;
      },
      mounted: function() {
        const that = this;
        window.onresize = function temp() {
          that.height = document.documentElement.clientHeight - 94.5 + "px;";
        };
      },
    }
</script>