diff --git a/src/components/custom/menu-tree.vue b/src/components/custom/menu-tree.vue
index ace8efee..64f6853e 100644
--- a/src/components/custom/menu-tree.vue
+++ b/src/components/custom/menu-tree.vue
@@ -66,6 +66,24 @@ 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 (
+
+ {label}
+
+
+ );
+ }
return {label}
;
}
diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue
index 22d26df5..38ac991a 100644
--- a/src/views/system/dict/index.vue
+++ b/src/views/system/dict/index.vue
@@ -234,7 +234,7 @@ function handleClickTree(keys: string[]) {
}
function handleResetTreeData() {
- dictPattern.value = undefined;
+ dictPattern.value = '';
getTreeData();
}