mirror of
https://github.com/fugary/simple-element-plus-template.git
synced 2025-12-10 04:47:50 +00:00
国际化、主题处理
This commit is contained in:
@@ -3,7 +3,8 @@ import ElementPlus from 'element-plus'
|
||||
import 'element-plus/dist/index.css'
|
||||
import 'element-plus/theme-chalk/dark/css-vars.css'
|
||||
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
||||
import { usePinia } from '@/store'
|
||||
import { usePinia } from '@/stores'
|
||||
import commons from '@/components'
|
||||
|
||||
import messagesConfig from '@/languages/MessagesConfig'
|
||||
|
||||
@@ -18,6 +19,7 @@ app.use(usePinia)
|
||||
app.use(router)
|
||||
app.use(ElementPlus)
|
||||
app.use(messagesConfig)
|
||||
app.use(commons)
|
||||
|
||||
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
||||
app.component(key, component)
|
||||
|
||||
Reference in New Issue
Block a user