From 88db88c99f57427114a415b3657ed520842bafca Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期二, 14 五月 2024 16:01:08 +0800 Subject: [PATCH] Merge branch 'master' of ssh://114.215.109.124:29418/underway-vue --- 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