cashier-ERP/src/main.ts

22 lines
534 B
TypeScript
Raw Normal View History

2024-03-30 09:23:34 +08:00
import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
2024-03-30 18:04:30 +08:00
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import router from './router'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
2024-03-30 09:23:34 +08:00
2024-03-30 18:04:30 +08:00
const app = createApp(App)
// 注册图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component)
}
app.use(router)
app.use(ElementPlus, {
locale: zhCn,
})
app.mount('#app')