From a5c65f7eba8fcd81c8c2d2711f1b9e134858145b Mon Sep 17 00:00:00 2001 From: csic21 <99160430+csic21@users.noreply.github.com> Date: Thu, 15 Dec 2022 22:39:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dantd=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=99=A8=E8=AF=AD=E8=A8=80=E5=8C=85=E4=B8=AD?= =?UTF-8?q?=E6=96=87=E7=BC=BA=E5=A4=B1=E9=97=AE=E9=A2=98=20(#10440)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.ts | 9 +++++++++ 1 file changed, 9 insertions(+) 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