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

模块联邦共享的模块,在子应用中运行获取到的window是基座应用window #2993

Open
wenjie79 opened this issue Aug 5, 2024 · 0 comments

Comments

@wenjie79
Copy link

wenjie79 commented Aug 5, 2024

What happens?

基座通过模块联邦共享组件以及公共方法,不论模块运行在基座还是子应用中,获取到的window都是基座的window。求大佬解答下原理🙌
QQ_1722830344668
这里打印结果一直都是undefined

最小可复现仓库

复现步骤,错误日志以及相关配置

相关环境信息

  • qiankun 版本 @latest
  • 浏览器版本 chorme/edge
  • 操作系统 windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant