src/menu/datasource/index.jsx
@@ -20,14 +20,7 @@ mainSearch: [], visible: false, loading: false, setting: null, record: {} } UNSAFE_componentWillMount () { const { config } = this.props this.setState({setting: fromJS(config.setting).toJS()}) } shouldComponentUpdate (nextProps, nextState) { @@ -227,6 +220,13 @@ } this.setState({loading: false, visible: false}) if (res.cols) { res.cols = [...config.cols, ...res.cols] } else { delete res.cols } this.props.updateConfig({...config, ...res}) }, () => { this.setState({loading: false})