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
525ae62418
commit
dca594989e
10
src/App.vue
10
src/App.vue
@ -1,20 +1,18 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="vue-admin-beautiful">
|
<div id="vue-admin-beautiful">
|
||||||
<a-config-provider :locale="zh_CN">
|
<a-config-provider :locale="locale">
|
||||||
<router-view />
|
<router-view />
|
||||||
</a-config-provider>
|
</a-config-provider>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import zh_CN from 'ant-design-vue/lib/locale-provider/zh_CN'
|
import zhCN from 'ant-design-vue/es/locale/zh_CN'
|
||||||
import moment from 'moment'
|
|
||||||
import 'moment/locale/zh-cn'
|
|
||||||
moment.locale('zh-cn')
|
|
||||||
export default {
|
export default {
|
||||||
name: 'App',
|
name: 'App',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
zh_CN,
|
locale: zhCN,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user