ant-design-pro icon indicating copy to clipboard operation
ant-design-pro copied to clipboard

🐛 [BUG]在 layout 不为 mix 时,菜单正下方的右下角有个 语言选择器 无法关闭

Open BarryBooder opened this issue 7 months ago • 0 comments

🐛 bug 描述

当 layout 不为 mix 时,菜单正下方的右下角有个 语言选择器无法关闭,翻阅 API https://procomponents.ant.design/components/layout#menu 无法找到对应的 API,通过.umi文件查得 API 是 rightContentRender ,但是这个 API 在文档中显示已经被替换。

可以通过 rightContentRender:false 关闭这个选择器。

🏞 期望结果 | Expected results

在 src/.umi/plugin-layout/rightRender.tsx 中移除 <SelectLang />,或直接移除 rightRender.tsx 组件

© 版本信息

  • Ant Design Pro 版本:6.0.0
  • umi 版本:4.x
  • 浏览器环境:Chrome
  • 开发环境 :Windows 10

🚑 其他信息

Snipaste_2024-07-11_23-15-20

Snipaste_2024-07-11_23-17-33

BarryBooder avatar Jul 11 '24 15:07 BarryBooder