From e538355f2bcde6a7006606d145b33ab50ec2e04f Mon Sep 17 00:00:00 2001 From: xlsea Date: Sat, 26 Jul 2025 12:55:19 +0800 Subject: [PATCH] =?UTF-8?q?refactor(projects):=20=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=96=B0=E5=A2=9E=E7=A6=81=E7=94=A8=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 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 (