22 lines
482 B
TypeScript
22 lines
482 B
TypeScript
import ElementPlus from 'element-plus'
|
|
import zhCn from 'element-plus/es/locale/lang/zh-cn'
|
|
import { createApp } from 'vue'
|
|
import App from './App.vue'
|
|
import { setupRouter } from './router/index'
|
|
import { setupPinia } from './store'
|
|
import 'element-plus/dist/index.css'
|
|
import '@/styles/css/global.css'
|
|
|
|
async function setupApp() {
|
|
const app = createApp(App)
|
|
setupPinia(app)
|
|
setupRouter(app)
|
|
|
|
app.use(ElementPlus, {
|
|
locale: zhCn,
|
|
})
|
|
app.mount('#app')
|
|
}
|
|
|
|
setupApp()
|