| | |
| | | }) |
| | | } |
| | | |
| | | // 兼容标签 |
| | | if (!config.tabgroups) { |
| | | config.tabgroups = [{ uuid: 'tabs', sublist: [] }] |
| | | } else if (typeof(config.tabgroups[0]) === 'string') { |
| | | let _tabgroups = [] |
| | | config.tabgroups.forEach(groupId => { |
| | | let _group = { |
| | | uuid: groupId, |
| | | sublist: fromJS(config[groupId]).toJS() |
| | | } |
| | | |
| | | delete config[groupId] |
| | | |
| | | _tabgroups.push(_group) |
| | | }) |
| | | |
| | | config.tabgroups = _tabgroups |
| | | } |
| | | |
| | | let custabs = ['1586577325055l2ng7t75g7i4ek2ng8o'] |
| | | config.tabgroups.forEach(group => { |
| | | if (!config[group]) return |
| | | |
| | | config[group] = config[group].map(tab => { |
| | | group.sublist = group.sublist.map(tab => { |
| | | if (custabs.includes(tab.linkTab)) { |
| | | tab.type = 'SecretKeyTable' |
| | | } |
| | |
| | | } |
| | | {setting && setting.onload !== 'false' && |
| | | config.tabgroups.map(group => { |
| | | if (config[group].length === 0) return null |
| | | if (group.sublist.length === 0) return null |
| | | |
| | | return ( |
| | | <Tabs defaultActiveKey="0" key={group}> |
| | | {config[group].map((_tab, index) => { |
| | | <Tabs defaultActiveKey="0" key={group.uuid}> |
| | | {group.sublist.map((_tab, index) => { |
| | | return ( |
| | | <TabPane tab={ |
| | | <span> |