Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IFrame全是灰屏空白,根本没法用 #11765

Open
Topi9999 opened this issue Mar 23, 2025 · 3 comments
Open

IFrame全是灰屏空白,根本没法用 #11765

Topi9999 opened this issue Mar 23, 2025 · 3 comments
Labels
bug Something isn't working need confirm

Comments

@Topi9999
Copy link

描述问题:

内嵌任何页面都是空白的。我一开始还以为是自己的实现问题,结果发现官方的示例也是,真难啊,好多BUG

截图或视频:

Image

如何复现(请务必完整填写下面内容):

  1. 你是如何使用 amis 的?
    sdk

  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
    6.11.0 还存咋

  3. 粘贴有问题的完整 amis schema 代码:

(function() {
    const response = {
        status: 0,
        data: {
            "type": "page",
            "body": {
              "type": "iframe",
              "src": "https://www.baidu.com/"
            }
          }
    };

    window.jsonpCallback && window.jsonpCallback(response);
})();
  1. 操作步骤
    修复时间还超长。。。
Copy link

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

@github-actions github-actions bot added the bug Something isn't working label Mar 23, 2025
@xiukun
Copy link
Contributor

xiukun commented Mar 24, 2025

@Topi9999 你换个连接 https://www.yuque.com/ 试试,百度地址做了CSP配置,在iframe下就是打不开

@Topi9999
Copy link
Author

@Topi9999 你换个连接 https://www.yuque.com/ 试试,百度地址做了CSP配置,在iframe下就是打不开

这个还没试,但是我其他的网页,比如内部的网页,也无法用IFrame嵌套进去
包括官方实例:https://aisuda.bce.baidu.com/amis/zh-CN/components/iframe
也是黑的。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need confirm
Projects
None yet
Development

No branches or pull requests

2 participants