App.vue 817 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <a-locale-provider :locale="locale">
  3. <div id="app">
  4. <router-view/>
  5. </div>
  6. </a-locale-provider>
  7. </template>
  8. <script>
  9. import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN'
  10. import enUS from 'ant-design-vue/lib/locale-provider/en_US'
  11. import { AppDeviceEnquire } from '@/utils/mixin'
  12. export default {
  13. mixins: [AppDeviceEnquire],
  14. data () {
  15. return {
  16. locale: zhCN
  17. }
  18. },
  19. mounted () {
  20. // const createForm = this.$form.createForm
  21. // this.$form.createForm = function (context) {
  22. // const options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { validateMessages: {
  23. // required: '%s 必填项'
  24. // } }
  25. // return createForm(context, options)
  26. // }
  27. }
  28. }
  29. </script>
  30. <style>
  31. #app {
  32. height: 100%;
  33. }
  34. </style>