1234567891011121314151617181920212223242526272829303132333435363738 |
- <template>
- <a-locale-provider :locale="zhCN">
- <div id="app">
- <router-view/>
- </div>
- </a-locale-provider>
- </template>
- <script>
- import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN'
- import moment from 'moment'
- import 'moment/locale/zh-cn'
- import { AppDeviceEnquire } from '@/utils/mixin'
- moment.locale('zh-cn')
- export default {
- mixins: [AppDeviceEnquire],
- data () {
- return {
- zhCN
- }
- },
- mounted () {
- // const createForm = this.$form.createForm
- // this.$form.createForm = function (context) {
- // const options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { validateMessages: {
- // required: '%s 必填项'
- // } }
- // return createForm(context, options)
- // }
- }
- }
- </script>
- <style>
- #app {
- height: 100%;
- }
- </style>
|