From adca2e26be4855e3e12ac3e372ca114b66e1a240 Mon Sep 17 00:00:00 2001 From: NicholasLD Date: Fri, 25 Jul 2025 03:51:09 +0000 Subject: [PATCH] =?UTF-8?q?refactor(menu):=20=E8=8F=9C=E5=8D=95=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E4=B8=AD=E9=9A=90=E8=97=8F=E7=9A=84=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=81=B0=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: NicholasLD --- src/views/system/menu/index.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue index e028bebc..a48289ab 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.visible === '1') { + return ( +
+ {label} + +
+ ); + } return
{label}
; }