ant-design / ant-design-pro

👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!
https://pro.ant.design
MIT License
36.34k stars 8.14k forks source link

🐛[BUG] #8799

Closed lsj162 closed 3 years ago

lsj162 commented 3 years ago

🐛 bug 描述

项目克隆本地启动后,修改配置路由,添加嵌套路由,不显示左边的全部导航菜单

📷 复现步骤

启动后,就不显示左边的导航菜单

🏞 期望结果

路由显示

antdpro v4 可以显示

💻 复现代码

export default [ { exact: true, path: '/', component: '@/layouts/base/index',

routes: [
  // 用户登陆
  {
    path: '/user',
    exact: false,
    layout: false,
    routes: [
      {
        path: '/user',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './user/Login',
          },
        ],
      },
    ],
  },

...

© 版本信息

🚑 其他信息

github-actions[bot] commented 3 years ago

当前 Issue 未检测到标题,请规范填写,谢谢!

The title of the current issue is not detected, please fill in according to the specifications, thank you!