From d0f5933cb7fe9196ca0250252efc820a1a9d947e Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期三, 08 五月 2024 22:47:30 +0800 Subject: [PATCH] 新增历史轨迹菜单 --- src/main.js | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/main.js b/src/main.js index f53ca8e..d6c2bf4 100644 --- a/src/main.js +++ b/src/main.js @@ -7,6 +7,19 @@ import App from './App.vue'; import router from './router'; +/* 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 { all } from '@awesome.me/kit-KIT_CODE/icons'; +import { fas } from '@fortawesome/free-solid-svg-icons'; +// import { faTwitter, faFontAwesome } from '@fortawesome/free-brands-svg-icons' +// import { faTwitter, faFontAwesome } from '@fortawesome/free-regular-svg-icons' + +/* add icons to the library */ +library.add(fas); + const app = createApp(App); // elementUI Icon 娉ㄥ唽 @@ -14,6 +27,7 @@ app.component(key, component); } +app.component('font-awesome-icon', FontAwesomeIcon); app.use(createPinia()); app.use(router); -- Gitblit v1.9.3