riku
2024-05-09 75aeb4e63339b60f9559af984c7d9f87a7cba24a
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);