king
2022-11-28 0ba276caaffedaf757b932f26aac86f695008175
src/views/design/header/editfirstmenu/index.jsx
@@ -118,11 +118,11 @@
  }
  
  handleButton = (type) => {
    const that = this
    // 菜单编辑:添加,确定,取消
    let _menuchange = !is(fromJS(this.state.menulist), fromJS(this.props.menulist))
    if (type === 'confirm' && _menuchange) {
      let _this = this
      let param  = {
        func: 'sPC_Menu_SortUpt',
        LText: this.state.menulist.map((item, index) => {
@@ -141,7 +141,7 @@
        onOk() {
          return Api.getSystemConfig(param).then(res => {
            if (res.status) {
              _this.props.reload()
              that.props.reload()
            } else {
              notification.warning({
                top: 92,
@@ -154,13 +154,11 @@
        onCancel() {}
      })
    } else if (type === 'cancel' && _menuchange) {
      let _this = this
      confirm({
        title: '菜单顺序已调整,放弃保存吗?',
        content: '',
        onOk() {
          _this.props.exitEdit()
          that.props.exitEdit()
        },
        onCancel() {}
      })