|
|
|
|
@ -1,3 +1,5 @@
|
|
|
|
|
import Avue from '@smallwei/avue'
|
|
|
|
|
import '@smallwei/avue/lib/index.css'
|
|
|
|
|
import { createApp } from 'vue'
|
|
|
|
|
import App from './App.vue'
|
|
|
|
|
import { createPinia } from 'pinia'
|
|
|
|
|
@ -7,9 +9,6 @@ import 'element-plus/dist/index.css'
|
|
|
|
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
|
|
|
|
import router from '@/router'
|
|
|
|
|
import locale from 'element-plus/lib/locale/lang/zh-cn'
|
|
|
|
|
import Avue from '@smallwei/avue'
|
|
|
|
|
import '@smallwei/avue/lib/index.css'
|
|
|
|
|
|
|
|
|
|
// 全局样式
|
|
|
|
|
import '@/styles/index.scss'
|
|
|
|
|
// svg
|
|
|
|
|
@ -29,21 +28,18 @@ moment.locale('zh-cn', {
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
const app = createApp(App)
|
|
|
|
|
|
|
|
|
|
// router
|
|
|
|
|
app.use(router)
|
|
|
|
|
// pinia
|
|
|
|
|
const pinia = createPinia()
|
|
|
|
|
app.use(pinia)
|
|
|
|
|
|
|
|
|
|
app.component('SvgIcon', svgIcon)
|
|
|
|
|
|
|
|
|
|
// Avue
|
|
|
|
|
app.use(Avue)
|
|
|
|
|
// element-plus
|
|
|
|
|
// element-pl
|
|
|
|
|
// us
|
|
|
|
|
app.use(ElementPlus, { locale })
|
|
|
|
|
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
|
|
|
app.component(key, component)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Avue
|
|
|
|
|
app.use(Avue)
|
|
|
|
|
app.mount('#app')
|
|
|
|
|
|