Zlpt_Portal/src/main.ts

22 lines
502 B
TypeScript
Raw Normal View History

2023-11-30 10:49:45 +08:00
import './assets/main.css'
2023-12-01 12:21:43 +08:00
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
2023-11-30 10:49:45 +08:00
import { createApp } from 'vue'
2023-12-04 13:10:38 +08:00
// import { createPinia } from 'pinia'
2023-11-30 10:49:45 +08:00
import App from './App.vue'
2023-12-04 13:10:38 +08:00
import pinia from "./store"
2023-11-30 10:49:45 +08:00
import router from './router'
2023-12-04 09:12:38 +08:00
import 'element-plus/dist/index.css'
2023-12-01 11:22:09 +08:00
import './style/css/reset.css'
2023-11-30 10:49:45 +08:00
const app = createApp(App)
2023-12-01 12:21:43 +08:00
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component)
}
2023-12-04 09:12:38 +08:00
app.use(pinia)
2023-12-04 13:10:38 +08:00
app.use(router)
2023-11-30 10:49:45 +08:00
app.mount('#app')