Commit 1321cbbd authored by 崔佳豪's avatar 崔佳豪

fix: navTheme取配置

parent 4fcc53e1
Pipeline #54277 passed with stages
......@@ -92,6 +92,8 @@ const appReducer = (state = initialState, action) => {
// 临时补充messageVoice。后续需要加到AppConfig中。
action.data && action.data.hasOwnProperty('messageVoice') && (window.globalConfig.messageVoice = action.data.messageVoice)
action.data && action.data.hasOwnProperty('topMenu') && (window.globalConfig.topMenu = action.data.topMenu)
action.data && action.data.hasOwnProperty('navTheme') && (window.globalConfig.navTheme = action.data.navTheme)
// eslint-disable-next-line no-undef
createStoreage.set('globalConfig', window.globalConfig);
......
......@@ -350,7 +350,7 @@ const Layout = (props) => {
title={props.global.title}
route={props.route}
location={location}
navTheme="dark"
navTheme={props.global?.navTheme ?? 'dark'}
mode="MDI"
fixedHeader
headerHeight={52}
......
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