king
2020-09-16 c34bcb0a3054bdab29fbaff17e587c19d7b5de28
src/views/menudesign/index.jsx
@@ -31,7 +31,7 @@
sessionStorage.setItem('isEditState', 'true')
class Mobile extends Component {
class MenuDesign extends Component {
  state = {
    dict: localStorage.getItem('lang') !== 'en-US' ? zhCN : enUS,
    MenuId: this.props.match.params.MenuId,
@@ -45,9 +45,12 @@
  }
  UNSAFE_componentWillMount() {
    this.getMenuParam()
    // this.testFunc()
  }
  shouldComponentUpdate (nextProps, nextState) {
    return !is(fromJS(this.state), fromJS(nextState))
  }
  /**
@@ -403,7 +406,8 @@
                    <Button type="primary" onClick={this.submitConfig} loading={this.state.menuloading}>{dict['mob.save']}</Button>
                  </div>
                } style={{ width: '100%' }}>
                  {config && config.components ? <MenuShell config={config} handleList={this.updateConfig} deleteCard={this.deleteCard} /> : null}
                  {/* {config && config.components ? <MenuShell menu={config} handleList={this.updateConfig} deleteCard={this.deleteCard} /> : null} */}
                  {config && config.components ? <MenuShell name="Glass" menu={config} handleList={this.updateConfig} deleteCard={this.deleteCard} /> : null}
                </Card>
              </div>
            </div>
@@ -422,4 +426,4 @@
  return {}
}
export default connect(mapStateToProps, mapDispatchToProps)(Mobile)
export default connect(mapStateToProps, mapDispatchToProps)(MenuDesign)