first
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
import { createApp } from 'vue'
|
||||
import 'element-plus/dist/index.css'
|
||||
import App from './App.vue'
|
||||
import ElementPlus from 'element-plus'
|
||||
import zhCn from 'element-plus/es/locale/lang/zh-cn'
|
||||
import { router } from '@/router'
|
||||
import 'normalize.css/normalize.css'
|
||||
import { pinia } from '@/store'
|
||||
import '@/permission'
|
||||
import '@/styles/style.scss'
|
||||
import * as ElementIcons from '@element-plus/icons'
|
||||
|
||||
const app = createApp(App)
|
||||
app.use(ElementPlus, { locale: zhCn })
|
||||
app.use(pinia)
|
||||
app.use(router)
|
||||
for (let icon in ElementIcons){
|
||||
app.component("ElIcon" +icon ,ElementIcons[icon])
|
||||
}
|
||||
app.mount('#app')
|
||||
Reference in New Issue
Block a user