king
2021-04-07 9e100b8804d43d9f7559cdf41b67ed7475a809b8
src/views/mobdesign/index.jsx
@@ -16,7 +16,6 @@
import MKEmitter from '@/utils/events.js'
import MenuUtils from '@/utils/utils-custom.js'
import asyncComponent from '@/utils/asyncComponent'
import { modifyCustomMenu } from '@/store/action'
import './index.scss'
@@ -46,6 +45,7 @@
window.GLOB.UserComponentMap = new Map() // 缓存用户自定义组件
window.GLOB.CacheIndependent = new Map()
window.GLOB.urlFields = []               // url变量
window.GLOB.customMenu = null            // 保存菜单信息
class MobDesign extends Component {
  state = {
@@ -445,8 +445,7 @@
            config: fromJS(config).toJS(),
            loading: false
          })
          this.props.modifyCustomMenu(config)
          window.GLOB.customMenu = config
        } else {
          this.jointComponents(config, indeComs, isCreate)
        }
@@ -561,7 +560,7 @@
          loading: false
        })
        this.props.modifyCustomMenu(config)
        window.GLOB.customMenu = config
      } else {
        this.jointComponents(config, indeComs, true)
      }
@@ -636,8 +635,7 @@
        config: config,
        loading: false
      })
      this.props.modifyCustomMenu(config)
      window.GLOB.customMenu = config
    })
  }
@@ -1280,7 +1278,7 @@
      config: config
    })
    this.props.modifyCustomMenu(config)
    window.GLOB.customMenu = config
  }
  insert = (item) => {
@@ -1289,7 +1287,7 @@
    config.components.push(item)
    this.setState({config})
    this.props.modifyCustomMenu(config)
    window.GLOB.customMenu = config
  }
  refreshView = () => {
@@ -1448,10 +1446,8 @@
  }
}
const mapDispatchToProps = (dispatch) => {
  return {
    modifyCustomMenu: (customMenu) => dispatch(modifyCustomMenu(customMenu))
  }
const mapDispatchToProps = () => {
  return {}
}
export default withRouter(connect(mapStateToProps, mapDispatchToProps)(MobDesign))