From cb0204bee89da3ebc28de3157687f8741e58d30c Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Tue, 28 Mar 2023 18:53:08 +1100 Subject: [PATCH] fix(layout): Use logo from props Only use default logo if user did not define logo in userconfig --- packages/plugin-layout/src/layout/index.tsx.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-layout/src/layout/index.tsx.tpl b/packages/plugin-layout/src/layout/index.tsx.tpl index e2ecef23..3155438d 100644 --- a/packages/plugin-layout/src/layout/index.tsx.tpl +++ b/packages/plugin-layout/src/layout/index.tsx.tpl @@ -76,7 +76,7 @@ const BasicLayout = (props: any) => { : undefined } formatMessage={userConfig?.formatMessage} - logo={logo} + logo={userConfig?.logo || logo} menuItemRender={(menuItemProps, defaultDom) => { if (menuItemProps.isUrl) { return defaultDom;