From cae6a120f641821aa4f64641da9878985c52e904 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Mon, 12 May 2025 17:11:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20UI=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/layout/components/MenuItem.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/layout/components/MenuItem.vue b/core/core-frontend/src/layout/components/MenuItem.vue index e77b01a017..1fa4fa87b0 100644 --- a/core/core-frontend/src/layout/components/MenuItem.vue +++ b/core/core-frontend/src/layout/components/MenuItem.vue @@ -78,7 +78,9 @@ const MenuItem = props => { { index: path }, { title: h('span', null, { default: () => title }), - default: h(ElIcon, null, { default: () => h(iconMap[icon], { className: 'svg-icon logo' }) }) + default: h(iconMap[icon] ? ElIcon : null, null, { + default: () => h(iconMap[icon], { className: 'svg-icon logo' }) + }) } ) }