From ca22cdd5550cfa0defb0f430c538698182cdaec1 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期一, 30 十二月 2024 16:42:49 +0800 Subject: [PATCH] Merge branch 'master' of http://dlindusit.com:53929/r/iailab-plat-ui-vue3 --- src/main.ts | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/src/main.ts b/src/main.ts index cc30f17..ed098e4 100644 --- a/src/main.ts +++ b/src/main.ts @@ -4,6 +4,19 @@ // 导入全局的svg图标 import '@/plugins/svgIcon' +import Iconify from '@iconify/iconify' +import epJson from '@iconify/json/json/ep.json' +import faJson from '@iconify/json/json/fa.json' +import faSolidJson from '@iconify/json/json/fa-solid.json' + +Iconify.addCollection(epJson) +Iconify.addCollection(faJson) +Iconify.addCollection(faSolidJson) + +export * from '@iconify/iconify' + +export default Iconify + // 初始化多语言 import { setupI18n } from '@/plugins/vueI18n' @@ -29,7 +42,7 @@ import router, { setupRouter } from '@/router' // 权限 -import { setupAuth } from '@/directives' +import { setupAuth, setupMountedFocus } from '@/directives' import { createApp } from 'vue' @@ -74,6 +87,8 @@ setupAuth(app) + setupMountedFocus(app) + await router.isReady() app.use(VueDOMPurifyHTML) -- Gitblit v1.9.3