| | |
| | | } |
| | | |
| | | if (_config.wrap.datatype === 'dynamic') { |
| | | _config.setting.onload = _config.setting.sync === 'true' ? 'false' : 'true' |
| | | _config.setting.onload = _config.setting.sync === 'true' ? 'false' : _config.setting.onload || 'true' |
| | | |
| | | if (_config.setting.supModule && !BID) { |
| | | _config.setting.onload = 'false' |
| | | } |
| | | |
| | | if (_config.setting.sync === 'true' && window.GLOB.SyncData.has(_config.dataName)) { |
| | | _data = window.GLOB.SyncData.get(_config.dataName) || [] |
| | | _data = _data[0] || {$$empty: true} |
| | |
| | | }) |
| | | } else { |
| | | this.setState({ BID: id, BData: data }, () => { |
| | | this.loadData() |
| | | if (config.wrap.datatype !== 'public') { |
| | | this.loadData() |
| | | } |
| | | }) |
| | | } |
| | | } |
| | |
| | | const { group } = this.state |
| | | |
| | | MKEmitter.emit('closeTabView', group.subButton.$MenuID) |
| | | |
| | | let tabId = '' |
| | | if (group.closeButton.refreshTab && group.closeButton.refreshTab.length > 0 && window.GLOB.appType !== 'pc') { |
| | | tabId = group.closeButton.refreshTab[group.closeButton.refreshTab.length - 1] |
| | | } |
| | | if (tabId && group.subButton.$MenuID !== tabId) { // 刷新当前菜单时无效 |
| | | MKEmitter.emit('reloadMenuView', tabId) |
| | | } |
| | | } |
| | | |
| | | resetTab = () => { |