riku
2025-09-11 307b17ef15c73a071912a262834f2a5f68e1fa87
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import './assets/main.css';
// import './lib/jquery-3.5.1.min';
 
import { createApp } from 'vue';
import { createPinia } from 'pinia';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import 'element-plus/theme-chalk/dark/css-vars.css';
import 'element-plus/theme-chalk/src/overlay.scss';
import 'element-plus/theme-chalk/src/message.scss';
import 'element-plus/theme-chalk/src/message-box.scss';
import 'element-plus/theme-chalk/src/notification.scss';
 
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 注册
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
 
app.component('font-awesome-icon', FontAwesomeIcon);
app.use(createPinia());
app.use(router);
 
app.mount('#app');