Skip to content

Conversation

@Ariel-Cheng
Copy link
Contributor

@Ariel-Cheng Ariel-Cheng commented Apr 20, 2020

之前为了兼容老得写法,所以配置了 name 就等同于配置了 menu,优先级高于 menu:false。

然后存在 menu 为 false 时,name 仍用于 document.title 等用途的场景,所以调高优先级,menu 显示指定为 false 时,不在侧边栏中展示,与文档保持一致。

Close umijs/umi#4179

@sorrycc sorrycc merged commit e363dc4 into master Apr 21, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix/menu-set-false-does-not-take-effect branch April 21, 2020 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@umijs/plugin-layout menu项文档描述跟实际情况不符

3 participants