| | |
| | | |
| | | if (group.uuid !== menuId) return |
| | | |
| | | if (position === 'grid' && config.wrap.refocus) { |
| | | let _group = fromJS(group).toJS() |
| | | _group.setting.focus = config.wrap.refocus |
| | | |
| | | this.setState({ |
| | | group: _group |
| | | }) |
| | | } |
| | | |
| | | if ((position === 'mainline' || position === 'popclose') && config.setting.supModule && BID) { |
| | | MKEmitter.emit('reloadData', config.setting.supModule, BID) |
| | | } else if (position === 'grid' && config.wrap.datatype === 'static') { |
| | | if (config.wrap.refocus && group.setting.focus === config.wrap.refocus) { |
| | | let _group = fromJS(group).toJS() |
| | | _group.setting.focus = config.wrap.focus |
| | | |
| | | this.setState({ |
| | | group: _group |
| | | }) |
| | | } |
| | | this.setState({ |
| | | data: null |
| | | }, () => { |
| | | this.setState({data: {$$empty: true}}) |
| | | }) |
| | | } else { |
| | | this.loadData() |
| | | this.loadData(position === 'grid') |
| | | } |
| | | |
| | | if (id) { |