Commit 3cb26c3a authored by 崔佳豪's avatar 崔佳豪

perf: 显示系统配置logo

parent 620aa5f9
Pipeline #53420 waiting for manual action with stages
...@@ -309,6 +309,12 @@ const Layout = (props) => { ...@@ -309,6 +309,12 @@ const Layout = (props) => {
store.set('updateMenuIndex', index); store.set('updateMenuIndex', index);
}; };
const logo =
props.global && _.isFunction(props.global.get) && props.global.get('bannerLogo')
? props.global &&
_.isFunction(props.global.transformDevAssetsBaseURL) &&
props.global.transformDevAssetsBaseURL(props.global.get('bannerLogo'))
: defaultSetting.logo;
return ( return (
<SecurityLayout {...props}> <SecurityLayout {...props}>
...@@ -327,7 +333,7 @@ const Layout = (props) => { ...@@ -327,7 +333,7 @@ const Layout = (props) => {
loading: menuLoading loading: menuLoading
// onLoadingChange: (loading) => setMenuLoading(loading) // onLoadingChange: (loading) => setMenuLoading(loading)
}} }}
logo={logo}
topMenuActiveKey={props.currentMenuIndex} topMenuActiveKey={props.currentMenuIndex}
rightContentRender={() => <RightContent/>} rightContentRender={() => <RightContent/>}
onPageChange={() => { onPageChange={() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment