umi-next
umi-next copied to clipboard
hold: 修复路由组件配置 wrappers 后在 layout 组件左侧菜单中不显示的 bug
原因生成的 wrapper 路由组件,没有 name 字段,layout 中就不显示了;如果直接拷贝 name 字段到各个 wrapper 路由上,就会出现多级菜单 : (
改动点
- 将需要包装的路由组件在
.umi/core/warpped
包装成一个新的组件 - 路由组件如果含有 wrappers 配置,使用上述包装过的组件
- 路由转化不再根据 wrappers 生成额外的 route 配置
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
Name | Status | Preview | Updated |
---|---|---|---|
umi-next | ⬜️ Ignored (Inspect) | Jun 10, 2022 at 9:46AM (UTC) |
写的真好,太棒了。