ylwy-h5/main.ts

20 lines
401 B
TypeScript

import '@/assets/main.css'
import { createApp } from 'vue'
import pinia from './stores/index'
import App from './App.vue'
import router from './router'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const app = createApp(App)
app.use(pinia)
app.use(router)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component)
}
app.mount('#app')