2026-04-13 10:30:03 +08:00
|
|
|
import { createApp } from 'vue';
|
|
|
|
|
import { createPinia } from 'pinia';
|
2026-04-07 20:01:06 +08:00
|
|
|
|
2026-04-13 10:30:03 +08:00
|
|
|
import App from './App.vue';
|
|
|
|
|
import router from './router';
|
|
|
|
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
|
|
|
|
|
import 'element-plus/dist/index.css';
|
2026-04-07 20:01:06 +08:00
|
|
|
|
2026-04-13 10:30:03 +08:00
|
|
|
const app = createApp(App);
|
2026-04-07 20:01:06 +08:00
|
|
|
|
|
|
|
|
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
2026-04-13 10:30:03 +08:00
|
|
|
app.component(key, component);
|
2026-04-07 20:01:06 +08:00
|
|
|
}
|
|
|
|
|
|
2026-04-13 10:30:03 +08:00
|
|
|
app.use(createPinia());
|
|
|
|
|
app.use(router);
|
2026-04-07 20:01:06 +08:00
|
|
|
|
2026-04-13 10:30:03 +08:00
|
|
|
app.mount('#app');
|