Skip to content

Commit

Permalink
fix(layout): no set default colorPrimary
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Dec 8, 2022
1 parent d092c1b commit f85103e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions packages/layout/src/ProLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -732,11 +732,15 @@ const ProLayout: React.FC<ProLayoutProps> = (props) => {

return (
<ConfigProvider
theme={{
token: {
colorPrimary: colorPrimary || '#1677FF',
},
}}
theme={
colorPrimary
? {
token: {
colorPrimary: colorPrimary,
},
}
: undefined
}
>
<ProConfigProvider autoClearCache {...darkProps} token={props.token}>
<BaseProLayout {...props} />
Expand Down

0 comments on commit f85103e

Please sign in to comment.