You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
620 B

import { createApp } from 'vue';
import { createPinia } from 'pinia';
import ElementPlus from 'element-plus';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import App from './App.vue';
import router from './router';
// 样式
import 'element-plus/dist/index.css';
import './styles/global.css';
// 创建应用实例
const app = createApp(App);
// 使用插件
app.use(createPinia());
app.use(ElementPlus);
app.use(router);
// 注册所有Element Plus图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component);
}
// 挂载应用
app.mount('#app');