From 6d33bf879069f2fd004f32271a4cb4c8bb8511d1 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期五, 12 七月 2024 17:18:57 +0800 Subject: [PATCH] 1. 新增分段展示路径的测试页面 --- src/main.js | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/src/main.js b/src/main.js index f53ca8e..06f7e7e 100644 --- a/src/main.js +++ b/src/main.js @@ -7,6 +7,18 @@ import App from './App.vue'; import router from './router'; +import './utils/expand/expand'; + +/* import the fontawesome core */ +import { library } from '@fortawesome/fontawesome-svg-core'; +/* import font awesome icon component */ +import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'; +/* import specific icons */ +import { fas } from '@fortawesome/free-solid-svg-icons'; + +/* add icons to the library */ +library.add(fas); + const app = createApp(App); // elementUI Icon 娉ㄥ唽 @@ -14,6 +26,7 @@ app.component(key, component); } +app.component('font-awesome-icon', FontAwesomeIcon); app.use(createPinia()); app.use(router); -- Gitblit v1.9.3