<template>
    <a-locale-provider :locale="locale">
    <div id="app">
      <router-view/>
    </div>
  </a-locale-provider>
</template>

<script>
import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN'
import enUS from 'ant-design-vue/lib/locale-provider/en_US'
import { AppDeviceEnquire } from '@/utils/mixin'

export default {
  mixins: [AppDeviceEnquire],
  data () {
    return {
      locale: 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>
