| | |
| | | const _locale = sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS |
| | | |
| | | class Main extends Component { |
| | | state = { |
| | | navBar: window.GLOB.navBar |
| | | } |
| | | state = {} |
| | | |
| | | componentDidMount () { |
| | | MKEmitter.addListener('resetSelectLine', this.resetParentParam) |
| | |
| | | } |
| | | |
| | | render () { |
| | | const { navBar } = this.state |
| | | const isSideMenu = !['linkage_navigation', 'linkage', 'menu_board'].includes(navBar) |
| | | |
| | | const navBar = window.GLOB.navBar |
| | | |
| | | return ( |
| | | <div className="mk-main-view"> |
| | | <ConfigProvider locale={_locale}> |
| | | <Header key="header"/> |
| | | {isSideMenu && navBar !== 'menu_board_navigation' ? <Sidemenu key="sidemenu"/> : null} |
| | | {isSideMenu ? <Tabview key="tabview"/> : null} |
| | | {!isSideMenu ? <Breadview key="breadview"/> : null} |
| | | {navBar === 'shutter' ? <Sidemenu key="sidemenu"/> : null} |
| | | {navBar === 'shutter' || navBar === 'menu_board_navigation' ? |
| | | <Tabview key="tabview"/> : |
| | | <Breadview key="breadview"/>} |
| | | {window.GLOB.systemType === 'production' ? <QueryLog /> : null} |
| | | </ConfigProvider> |
| | | <ImgScale /> |