We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
使用umi max 的qiankun时,子应用入口 menuRender设置为false,侧边栏没有隐藏。
主应用配置
// .umirc.ts import { defineConfig } from '@umijs/max'; export default defineConfig({ antd: {}, access: {}, model: {}, initialState: {}, request: {}, layout: { title: '@umijs/max', }, routes: [ { path: '/', redirect: "/home" }, { name: '首页', path: '/home', component: './Home', menuRender: false }, { path: '/app1/*', menuRender: false, microApp: "app1", }, ], npmClient: 'pnpm', qiankun: { master: { prefetch: true, enable: true, sandbox: true, apps: [ { name: 'app1', entry: '/app1/', activeRule: '/app1', } ], routes: [ ] } }, });
子应用配置
// .umirc.ts import { defineConfig } from '@umijs/max'; export default defineConfig({ antd: {}, access: {}, model: {}, initialState: {}, request: {}, layout: { title: '@umijs/max', }, routes: [ { path: '/', redirect: '/home', }, { name: '首页', path: '/home', component: './Home', layout: false }, { name: '权限演示', path: '/access', component: './Access', layout: false }, { name: ' CRUD 示例', path: '/table', component: './Table', layout: false }, ], npmClient: 'pnpm', qiankun: { slave: {} }, mountElementId: 'app1', // 容器ID publicPath: '/app1/', base: '/app1/', }); // app.ts export const qiankun = { // 应用加载之前 async bootstrap(props: any) { console.info("micro app1 bootstrap:", props) }, // 应用 render 之前触发 async mount(props: any) { console.info("micro app1 mount:", props) }, // 应用卸载之后触发 async unmount(props: any) { console.info("micro app1 unmount:", props) }, }
主应用和子应用使用的都是umi max,版本相同
The text was updated successfully, but these errors were encountered:
No branches or pull requests
使用umi max 的qiankun时,子应用入口 menuRender设置为false,侧边栏没有隐藏。
主应用配置
子应用配置
主应用和子应用使用的都是umi max,版本相同
The text was updated successfully, but these errors were encountered: