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

plugin-qiankun 中添加 运行时 通过insert 嵌入路由 没有进行编译,无法使用微服务 #751

Open
jefferyssy opened this issue Nov 22, 2021 · 0 comments

Comments

@jefferyssy
Copy link

export const qiankun = {
apps: microApps,
lifeCycles: {
beforeLoad: (app: any) => console.log('加载微服务:', app.name),
afterUnMount: [(app: any) => console.log('解除微服务:', app.name)],
},
// 绑定对应的路由
routes: [
{
path: '/subReport',
microApp: 'sub-app-report',
},
{
path: '/test/subReport',
microApp: 'sub-app-report',
insert: '/test',
},
],
};

如上:通过 insert 嵌入路由,但是没有编译

image

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

1 participant