fix(qiankun): 运行时同时支持insert路径写入,以及嵌套路径两种写入方式 (#751)#770
Open
jefferyssy wants to merge 1 commit intoumijs:masterfrom
Open
fix(qiankun): 运行时同时支持insert路径写入,以及嵌套路径两种写入方式 (#751)#770jefferyssy wants to merge 1 commit intoumijs:masterfrom
jefferyssy wants to merge 1 commit intoumijs:masterfrom
Conversation
Author
|
理解偏差, 现有的的嵌套路由模式,它还是只能添加到根路径上,而不是一开始理解的merge路径。 例如: app.ts 结果: 实际,只是做嵌套插入微服务,没有动态插入字段路由的功能,并且导致 insert方法无效 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
umi-qiankun@2.30.0 umijs#698
版本支持运行中 insert 路由,加载微应用
但是到了
umi-qiankun@2.33.0 umijs#706
insert 只能插入路由,而不能加载微引用
插入路由是通过 加载嵌套路由的方式加载微应用
目的:最好两种方式都能加载微应用,可以让用户自定义选择那种模式
个人理解的使用场景:
insert: 模式比较适合,主应用为主体,路由大部分在配置中,只有小部分做微应用的时候适合独立插入路由。
嵌套路由:模式比较舍和,主应用只是一个基础的载体,所有的业务功能都来自子应用。主应用的路由是通过动态加载的方式生成