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

microApp.start()后window.__MICRO_APP_ENVIRONMENT__ 获取不到,是undefined,是怎么回事呢? #21

Open
yinton opened this issue Dec 16, 2022 · 3 comments

Comments

@yinton
Copy link

yinton commented Dec 16, 2022

No description provided.

@bailicangdu
Copy link
Contributor

vite应用吗

@caoxicheng
Copy link

很多环境变量获取不到,并且按照文档来说,子应用的__MICRO_APP_BASE_APPLICATION__ 不应该为true吧?

angular基座+angular子应用
子应用中打印window为
image

@wangling404
Copy link

image 因为vite作为子应用时关闭了沙箱,导致__MICRO_APP_ENVIRONMENT__和__MICRO_APP_NAME__两个变量失效,所以需要自行判断是否微前端环境以及手动填写应用name值。怎么自定判断,我也不知道

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

4 participants