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

能在主项目给子项目的沙箱注入属性或者api吗? #2819

Closed
Jam1zhu opened this issue Nov 17, 2023 · 1 comment
Closed

能在主项目给子项目的沙箱注入属性或者api吗? #2819

Jam1zhu opened this issue Nov 17, 2023 · 1 comment

Comments

@Jam1zhu
Copy link

Jam1zhu commented Nov 17, 2023

场景是这样的,多部门共建的平台,localstorage、sessionstorage、cookie存在滥用的情况。想通过技术手段监听各个子项目对这些api的使用情况。

现在的想法是,二次封装window.localstorage,并把方法注入到子项目的沙箱上,当子项目调用方法时,获取当前子项目名称、调用的api和属性。通过主项目把搜集到的数据上报的站点分析里。

qiankun内能实现吗?或者有其他更好的方式做这个事情吗?

Copy link

由于缺乏足够的信息(github、stackblitz、codesandbox等可复现仓库),我们暂时关闭了该 Issue。请修改(不要回复) Issue 提供最小重现以重新开启。谢谢。如果只是单独的技术咨询,可移步 https://qiankun.umijs.org/#-community 交流~

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 17, 2023
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