umi icon indicating copy to clipboard operation
umi copied to clipboard

[Bug] umi 4.0.22 + pro-components 2.3.12 layouts下配置了index.tsx 菜单消失

Open Ruboyq opened this issue 3 years ago • 1 comments

What happens?

ant-design-pro的脚手架,umi 4.0.22 + pro-components 2.3.12,layouts下配置了index.tsx后菜单消失

Mini Showcase Repository(REQUIRED)

Please provide a minimal reproduction then upload to your GitHub. 请提供 最小重现,并上传到你的 GitHub 仓库

https://github.com/Ruboyq/bugrepo

How To Reproduce

Steps to reproduce the behavior: 1. 2.

  1. yarn
  2. yarn start
  3. admin登录 菜单消失 image image 脚手架新建的工程,改了下umi和pro-components版本,然后新增了layouts/index.tsx,菜单就消失了,其他什么都没改 因为之前工程通过这种方式在页面的最外面统一包了一层,之前的工程也都有这个问题

Context

  • Umi Version: 4.0.22
  • Node Version:14.17.3
  • Platform:mac
  • **Pro-Components: 2.3.12

Ruboyq avatar Sep 26 '22 07:09 Ruboyq

Pro-Components 回退 2.3.11 就恢复正常

SturdyCat avatar Sep 29 '22 08:09 SturdyCat

https://github.com/umijs/umi/pull/9532

xiaohuoni avatar Oct 26 '22 09:10 xiaohuoni

我试了下,在最新版本没有这个问题了:

// package.json

+   "@ant-design/pro-components": "^2.3.30",
+   "@umijs/max": "^4.0.30",

fz6m avatar Nov 12 '22 01:11 fz6m