riku
2024-04-29 113529424720f87ceb2e4604a4d2e1019e0db4f8
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);