17 lines
575 B
TypeScript
17 lines
575 B
TypeScript
import { createApp } from 'vue';
|
|
import App from './App.vue';
|
|
import router from './router';
|
|
import { createPinia } from 'pinia';
|
|
import ElementPlus from 'element-plus';
|
|
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
|
|
import './assets/css/reset.css';
|
|
import './assets/css/index.scss';
|
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
|
|
|
|
const app = createApp(App);
|
|
|
|
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
app.component(key, component);
|
|
}
|
|
app.use(router).use(createPinia()).use(ElementPlus, { locale: zhCn }).mount('#app');
|