Files
xian_vue_new/src/main.ts
T

19 lines
430 B
TypeScript
Raw Normal View History

import { createApp } from 'vue';
import { createPinia } from 'pinia';
2026-04-07 20:01:06 +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
const app = createApp(App);
2026-04-07 20:01:06 +08:00
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component);
2026-04-07 20:01:06 +08:00
}
app.use(createPinia());
app.use(router);
2026-04-07 20:01:06 +08:00
app.mount('#app');