diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue index a48289ab..16675c67 100644 --- a/src/views/system/menu/index.vue +++ b/src/views/system/menu/index.vue @@ -113,6 +113,15 @@ function renderLabel({ option }: { option: TreeOption }) { if (label?.startsWith('route.') || label?.startsWith('menu.')) { label = $t(label as App.I18n.I18nKey); } + // 禁用的菜单显示红色 + if (option.status === '1') { + return ( +
+ {label} + +
+ ); + } // 隐藏的菜单显示灰色 if (option.visible === '1') { return (