riku
2024-03-28 8252f4dbbbdb9867f7f22290619e0fd7f94348e5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import './assets/main.css';
 
import { createApp } from 'vue';
import { createPinia } from 'pinia';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
 
import App from './App.vue';
import router from './router';
 
const app = createApp(App);
 
// elementUI Icon 注册
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
 
app.use(createPinia());
app.use(router);
 
app.mount('#app');