From dd6bb3f7d97466c1c0fb3fd4ffee52ee555eed3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=84=9A=E6=8C=87=E5=AF=BC?= Date: Wed, 25 Dec 2024 16:33:34 +0800 Subject: [PATCH] fix: site style in dark mode (#1300) Co-authored-by: tingzhao.ytz --- .dumirc.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.dumirc.ts b/.dumirc.ts index b8d002a75..811e5790d 100644 --- a/.dumirc.ts +++ b/.dumirc.ts @@ -41,6 +41,8 @@ const alias = pkgList.reduce( // 打开 SSR 的情况下需要配置 wagmi 的别名,因为安装了 18.3.0-canary-c3048aab4-20240326 版本的 react 会导致文档 demo 和 packages 中依赖不同版本的 wagmi(pnpm 的包管理机制的原因),导致出现类似下面这样的错误 // `useConfig` must be used within `WagmiProvider`. Docs: https://wagmi.sh/react/api/WagmiProvider.html Version: wagmi@2.12.13 wagmi: resolve('./node_modules/wagmi'), + // 指定 antd 版本,避免 antd 多版本下官网 design token 不生效的问题 + antd: resolve('./node_modules/antd'), '@tanstack/react-query': resolve('./node_modules/@tanstack/react-query'), '@ant-design/cssinjs': resolve('./node_modules/@ant-design/cssinjs'), }