fix(qiankun): 运行时同时支持insert路径写入,以及嵌套路径两种写入方式 (#751) #770
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[email protected] umijs#698
版本支持运行中 insert 路由,加载微应用
但是到了
[email protected] umijs#706
insert 只能插入路由,而不能加载微引用
插入路由是通过 加载嵌套路由的方式加载微应用
目的:最好两种方式都能加载微应用,可以让用户自定义选择那种模式
个人理解的使用场景:
insert: 模式比较适合,主应用为主体,路由大部分在配置中,只有小部分做微应用的时候适合独立插入路由。
嵌套路由:模式比较舍和,主应用只是一个基础的载体,所有的业务功能都来自子应用。主应用的路由是通过动态加载的方式生成