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

preloadApp 和 startApp 重复配置项问题 #59

Closed
868618 opened this issue Aug 14, 2022 · 2 comments
Closed

preloadApp 和 startApp 重复配置项问题 #59

868618 opened this issue Aug 14, 2022 · 2 comments
Labels
enhancement New feature or request good question Good for newcomers

Comments

@868618
Copy link

868618 commented Aug 14, 2022

1、在入口preloadApp的时候写一遍子应用路由

2、在子组件里又要写一遍子应用路由

3、添加和修改的时候容易遗忘,漏改

入口
image

子组件
image

@yiludege
Copy link
Collaborator

非常好的问题,这个问题我也很早就注意到了

我考虑一下是不是出一个createApp( option ) api

然后 preloadApp(name)、startApp(name) 就好了,option 统一在 createApp 中填一遍

当然原来的 preloadApp(option)、startApp(option) 用法也支持,只不过是覆盖 createApp( option ) 中的 option

@yiludege yiludege added good question Good for newcomers enhancement New feature or request labels Aug 14, 2022
@yiludege yiludege changed the title 建议实现一套子应用路由列表机制,类似vue-router的路由匹配功能及写法 preloadApp 和 startApp 重复配置问题 Aug 15, 2022
@yiludege yiludege changed the title preloadApp 和 startApp 重复配置问题 preloadApp 和 startApp 重复配置项问题 Aug 15, 2022
@yiludege
Copy link
Collaborator

已经实现 createApp api 能力

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good question Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants