king
2022-04-26 5046d0d13dc6a8563b8e54e31913bc44cfa1072f
src/menu/popview/index.jsx
@@ -46,7 +46,8 @@
    menuloading: false,
    oriConfig: null,
    config: null,
    customComponents: []
    customComponents: [],
    comloading: false
  }
  UNSAFE_componentWillMount() {
@@ -133,10 +134,11 @@
    })
    this.setState({
      config: {...config, components: []}
      config: {...config, components},
      comloading: true
    }, () => {
      this.setState({
        config: {...config, components: components}
        comloading: false
      })
    })
  }
@@ -577,10 +579,11 @@
  resetConfig = (config) => {
    this.setState({
      config: {...config, components: []},
      config,
      comloading: true
    }, () => {
      this.setState({
        config: config
        comloading: false
      })
    })
@@ -625,7 +628,7 @@
  render () {
    const { btn } = this.props
    const { activeKey, dict, config, menuloading, customComponents, MenuId } = this.state
    const { activeKey, comloading, dict, config, menuloading, customComponents, MenuId } = this.state
    return (
      <div className="pc-poper-view">
@@ -670,7 +673,7 @@
                  <Button type="default" onClick={this.closeView}>{dict['mob.return']}</Button>
                </div>
              } style={{ width: '100%' }}>
                {config && config.components ? <MenuShell menu={config} handleList={this.updateConfig} /> : null}
                {config && !comloading ? <MenuShell menu={config} handleList={this.updateConfig} /> : null}
              </Card>
            </div>
          </div>