Browse Source

fix: 修复antd时间选择器语言包中文缺失问题 (#10440)

pull/10453/head
csic21 4 years ago
committed by GitHub
parent
commit
a5c65f7eba
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      config/config.ts

9
config/config.ts

@ -80,6 +80,15 @@ export default defineConfig({
locale: true,
...defaultSettings,
},
/**
* @name moment2dayjs 插件
* @description 将项目中的 moment 替换为 dayjs
* @doc https://umijs.org/docs/max/moment2dayjs
*/
moment2dayjs: {
preset: 'antd',
plugins: ['duration'],
},
/**
* @name 国际化插件
* @doc https://umijs.org/docs/max/i18n

Loading…
Cancel
Save