-
Notifications
You must be signed in to change notification settings - Fork 550
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
子应用通过html中内联脚本动态加载的script标签里的mount方法未执行 #1218
Labels
Comments
有没有官方提供的patch方法可以快速解决一下的? |
bailicangdu
added
bug
Something isn't working
Working on it
Working on this issue
labels
May 15, 2024
这种情况暂时不要使用umd模式,近期会进行修复 |
项目应用卸载比较频繁,文档写umd模式性能会好一些。请问大概多久?如果时间短我们可以等一等,时间长的话我们看看先如何解决 |
2周左右 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
复现步骤
子应用示例
index.js中挂载了window.mount方法
index.js
大致看了一下源码,在加载完html过程中会将<script> 的内联脚本和 src放在一个数组里,这个数组的js每一个执行完后会判断是否有window.mount,有则执行。
而通过内联脚本动态加载js执行是异步的不在上面这个过程里,所以js里的window.mount没有执行。
上传截图
复现仓库
https://github.com/Lie8466/micro-app-issue
环境信息
The text was updated successfully, but these errors were encountered: