From 9caa00855197d04c6defcc7da0a4c07a40a78967 Mon Sep 17 00:00:00 2001 From: kailong321200875 <321200875@qq.com> Date: Thu, 22 Feb 2024 17:35:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=90=8C=E6=AD=A5=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TabMenu/src/TabMenu.vue | 2 +- uno.config.ts | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/TabMenu/src/TabMenu.vue b/src/components/TabMenu/src/TabMenu.vue index 8642a3c..28d3b62 100644 --- a/src/components/TabMenu/src/TabMenu.vue +++ b/src/components/TabMenu/src/TabMenu.vue @@ -200,7 +200,7 @@ export default defineComponent({ { const isBuild = !!process.argv[4] let env = {} as any if (!isBuild) { - env = loadEnv(process.argv[4], root) - } else { env = loadEnv(process.argv[3], root) + } else { + env = loadEnv(process.argv[4], root) } // @ts-ignore if (env.VITE_USE_ONLINE_ICON === 'true') { @@ -19,6 +19,12 @@ const createPresetIcons = () => { return [ presetIcons({ prefix: '' + // 由于默认加载的是所有的图标,启动会非常慢,可以在这里去加载需要的图标,确保启动速度 + // collections: { + // carbon: () => import('@iconify-json/carbon/icons.json').then(i => i.default), + // mdi: () => import('@iconify-json/mdi/icons.json').then(i => i.default), + // logos: () => import('@iconify-json/logos/icons.json').then(i => i.default), + // } }) ] }