mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-09 13:53:38 +08:00
chore:更换到主分支
This commit is contained in:
35
src/main.ts
Normal file
35
src/main.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
import { createApp } from 'vue'
|
||||
import App from './App.vue'
|
||||
import router from './router'
|
||||
import store from './store'
|
||||
|
||||
// 内置ElementPlus
|
||||
import ElementPlus from 'element-plus'
|
||||
import 'element-plus/lib/theme-chalk/index.css'
|
||||
|
||||
// 内置vxe-table
|
||||
import 'xe-utils'
|
||||
import VXETable from 'vxe-table'
|
||||
import 'vxe-table/lib/style.css'
|
||||
|
||||
// 内置国际化语言包
|
||||
import { createI18n } from 'vue-i18n'
|
||||
import ch from "./locales/ch.json"
|
||||
import en from "./locales/en.json"
|
||||
const i18n = createI18n({
|
||||
locale: 'ch', //默认使用中文
|
||||
messages: {
|
||||
ch,
|
||||
en
|
||||
}
|
||||
})
|
||||
|
||||
// 导入公共样式
|
||||
import './style/index.scss'
|
||||
// 导入字体图标
|
||||
import "./assets/iconfont/iconfont.js"
|
||||
import "./assets/iconfont/iconfont.css"
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
app.use(store).use(router).use(i18n).use(ElementPlus).use(VXETable).mount('#app')
|
||||
Reference in New Issue
Block a user