| | |
| | | updateConfig: PropTypes.func |
| | | } |
| | | |
| | | state = { |
| | | menulist: [] |
| | | } |
| | | state = {} |
| | | |
| | | UNSAFE_componentWillMount () { |
| | | let _param = {func: 's_get_pc_menus', systemType: options.sysType, debug: 'Y'} |
| | | _param.pro_sys = window.GLOB.systemType === 'production' ? 'Y' : '' |
| | | if (sessionStorage.getItem('thdMenuList') && sessionStorage.getItem('fstMenuList')) { |
| | | |
| | | Api.getSystemConfig(_param).then(result => { |
| | | } else { |
| | | this.getMenus() |
| | | } |
| | | } |
| | | |
| | | getMenus = () => { |
| | | Api.getSystemConfig({func: 's_get_pc_menus', systemType: options.sysType, debug: 'Y'}).then(result => { |
| | | if (result.status) { |
| | | let thdMenuList = [] |
| | | let menulist = result.fst_menu.map(fst => { |