cashier-ERP/src/main.ts

24 lines
613 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-04-01 17:45:21 +08:00
import { createPinia } from 'pinia'
2024-03-30 18:04:30 +08:00
const app = createApp(App)
// 注册图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component)
}
2024-04-01 17:45:21 +08:00
const pinia = createPinia();
2024-03-30 18:04:30 +08:00
app.use(router)
2024-04-01 17:45:21 +08:00
app.use(pinia)
2024-03-30 18:04:30 +08:00
app.use(ElementPlus, {
locale: zhCn,
})
app.mount('#app')