From 8a3ff748339500750a60e72f7c5d8aaaeda5f404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Mon, 29 Jun 2026 17:48:27 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=20icon=20#=E5=8F=B7?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=80=BC=E4=B8=8E=E7=A9=BA=E5=80=BC=E4=B8=8D?= =?UTF-8?q?=E5=9C=A8=E4=B8=80=E5=88=97=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/menu/index.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue index 9fee864c..d6d89bd0 100644 --- a/src/views/system/menu/index.vue +++ b/src/views/system/menu/index.vue @@ -75,7 +75,7 @@ @@ -431,6 +431,11 @@ const { dialog, openDialog, closeDialog, setTitle } = useDialogState(); type MenuTagType = 'warning' | 'primary' | 'success' | 'danger'; +const isMenuIconVisible = (icon?: string) => { + const normalizedIcon = icon?.trim(); + return !!normalizedIcon && normalizedIcon !== '#'; +}; + const getMenuTypeMeta = (menu: Partial): { label: string; type: MenuTagType } => { if (menu.menuType === MenuTypeEnum.F) { return { label: '按钮', type: 'warning' };