mirror of
https://gitee.com/chu1204505056/vue-admin-beautiful.git
synced 2025-04-06 03:58:00 +08:00
Update App.vue
汉化
This commit is contained in:
parent
0679dc343b
commit
525ae62418
20
src/App.vue
20
src/App.vue
@ -1,6 +1,24 @@
|
|||||||
<template>
|
<template>
|
||||||
<router-view />
|
<div id="vue-admin-beautiful">
|
||||||
|
<a-config-provider :locale="zh_CN">
|
||||||
|
<router-view />
|
||||||
|
</a-config-provider>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<script>
|
||||||
|
import zh_CN from 'ant-design-vue/lib/locale-provider/zh_CN'
|
||||||
|
import moment from 'moment'
|
||||||
|
import 'moment/locale/zh-cn'
|
||||||
|
moment.locale('zh-cn')
|
||||||
|
export default {
|
||||||
|
name: 'App',
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
zh_CN,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
@import '~@/vab/styles/vab.less';
|
@import '~@/vab/styles/vab.less';
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user