From 2b86f724b1e7856382cf4cf844810578b452fce9 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Thu, 25 Apr 2024 19:37:03 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E7=B3=BB=E7=BB=9F=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E9=80=89=E6=8B=A9=E7=BC=96=E5=8F=B7icon-001?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/menu/index.vue | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue index dc7193fa..b0515a8e 100644 --- a/src/views/system/menu/index.vue +++ b/src/views/system/menu/index.vue @@ -32,7 +32,20 @@ const { t } = useI18n(); const { getDict } = useDictStore(); /**字体图标可选择数据 */ -let icons = reactive(iconFonts.map((item,i) => ({ value: item, label: `icon${String(i+1).padStart(3, '0')}` }))); +let icons = reactive( + iconFonts.map((item, i) => { + if (i === 0) { + return { + value: item, + label: item, + }; + } + return { + value: item, + label: 'icon-' + `${i}`.padStart(3, '0'), + }; + }) +); /**字典数据 */ let dict: { @@ -1173,5 +1186,4 @@ onMounted(() => { - +