vue中使用iframe高度不能撑满整个屏幕

问题遇到的现象和发生背景
问题相关代码,请勿粘贴截图
  <div>
            <iframe class="iframe" src="https://sugar.aipage.com/dashboard/948193ca69c363b6de1fc11586010b2e" frameborder="0"></iframe>
  </div>


.iframe{
    width: 100%;
    height: 100%;
    
}
运行结果及报错内容

img

我的解答思路和尝试过的方法
我想要达到的结果

不写width呐

加个position:absolute;top:0;left:0

那需要看看外层的dom节点是否是100%撑开了,或者再外层,一层一层的去看。

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      html,
      body {
        width: 100%;
        height: 100%;
      }
      .iframe {
        width: 100%;
        height: 100%;
      }
    </style>
  </head>
  <body>
    <div class="iframe">
      <iframe
        class="iframe"
        src="https://sugar.aipage.com/dashboard/948193ca69c363b6de1fc11586010b2e"
        frameborder="0"
      ></iframe>
    </div>

    <!-- https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/Input/button -->
    <script></script>
  </body>
</html>