| | |
| | | localedict: sessionStorage.getItem('lang') !== 'en-US' ? antdZhCN : antdEnUS, |
| | | dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS |
| | | }) |
| | | this.getAppMessage() |
| | | this.getAppMessage(param.MenuID) |
| | | } else if (param.type === 'view') { |
| | | this.setState({ |
| | | MenuId: param.MenuID |
| | |
| | | this.props.history.push('/pcdesign/' + param) |
| | | } |
| | | |
| | | getAppMessage = () => { |
| | | getAppMessage = (MenuID) => { |
| | | Api.getSystemConfig({ |
| | | func: 's_get_keyids', |
| | | bid: sessionStorage.getItem('appId') |
| | |
| | | return |
| | | } |
| | | |
| | | let homeId = '' |
| | | let homeId = MenuID || '' |
| | | let appViewList = [] |
| | | if (res.data && res.data.length > 0) { |
| | | if (!homeId && res.data && res.data.length > 0) { |
| | | appViewList = res.data |
| | | appViewList.forEach(item => { |
| | | if (item.keys_type === 'index') { |