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

ifrme沙箱模式主应用重复加载 #949

Open
Thomas-wei opened this issue Nov 6, 2023 · 6 comments
Open

ifrme沙箱模式主应用重复加载 #949

Thomas-wei opened this issue Nov 6, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@Thomas-wei
Copy link

问题描述

主应用 vue2.6 + vue-router 3.1
子引用vue2.7 + vue-router3.6
主应用地址:dev.xxx.com.cn:8081
子应用地址:dev.xxx.com.cn:8086/child/index.html

使用with沙箱可以正常打开,切换成iframe沙箱加载子应用就会导致主应用加载多次,导致出现子应用重复加载的报错
[micro-app] app name conflict, an app named: xxxx

环境信息

  • micro-app版本:1.0.0-rc.2
  • 主应用前端框架&版本:vue2.6 + vue-router 3.1
  • 子应用前端框架&版本:vue2.7 + vue-router3.6
  • 构建工具&版本:webpack5
@bailicangdu bailicangdu added the Need Reproduction 需要复现步骤 label Nov 7, 2023
Copy link

github-actions bot commented Nov 7, 2023

Hello @Thomas-wei. In order to facilitate location and troubleshooting, we need you to provide a realistic GitHub repository.
您好 @Thomas-wei, 为了方便定位和排查问题,我们需要您提供一个重现实例,请提供一个尽可能精简的 GitHub 仓库地址。

@bailicangdu
Copy link
Contributor

可以提供一个复现的demo吗

@Thomas-wei
Copy link
Author

单位的代码拿不出来,我用我自己电脑复现一下试试

Copy link

Since the issue was labeled with Need Reproduction, but no response in 7 days. This issue will be close. If you have any questions, you can comment and reply.
由于该 issue 被标记为需要可复现步骤,却 7 天未收到回应。现关闭 issue,若有任何问题,可评论回复。

@Thomas-wei
Copy link
Author

找到了复现步骤,
只要通过component加载子应用,然后使用iframe,就会出现这个问题

image
image

@hzfvictory
Copy link

跟你一样 请问最后解决了吗,Safari 上额外明显

@bailicangdu bailicangdu reopened this Dec 14, 2023
@bailicangdu bailicangdu added bug Something isn't working and removed Need Reproduction 需要复现步骤 labels Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants