fixed: ts error

This commit is contained in:
LittleBoy 2025-01-25 16:34:44 +08:00
parent 07d3bb2bb9
commit 1e3f8dc3c6

View File

@ -44,7 +44,7 @@ const AppRouter = () => {
}, [i18n])
return (<ConfigProvider
locale={i18n == 'zh-CN' ? zhCN : undefined}
locale={i18n?.language?.toString() == 'zh-CN' ? zhCN : undefined}
theme={{
token: {
borderRadius: 4,