diff --git a/config/config.ts b/config/config.ts index 54c7d6d7..54b6a589 100644 --- a/config/config.ts +++ b/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