king
2024-10-11 6ca240a14ccf55d4e0a94fff77e95f64db2cdfcc
src/menu/transfer/index.jsx
@@ -26,7 +26,7 @@
  trigger = () => {
    const { config } = this.props
    const _this = this
    const that = this
    if (!config.enabled) {
      let tb = config.components[0]
@@ -36,7 +36,7 @@
          content: '',
          onOk() {
            return new Promise(resolve => {
              _this.execUpdate(resolve, true)
              that.execUpdate(resolve, true)
            })
          },
          onCancel() {}
@@ -58,7 +58,7 @@
      content: '',
      onOk() {
        return new Promise(resolve => {
          _this.execUpdate(resolve)
          that.execUpdate(resolve)
        })
      },
      onCancel() {}
@@ -73,8 +73,6 @@
    _config.enabled = false
    delete _config.autoMatic
    let useMSearch = false
    if (clear) {
      _config.components = []
@@ -91,9 +89,6 @@
            tab.components[0].width = 24
            tab.components[0].wrap.width = 24
            tab.components[0].wrap.name = tab.components[0].name
            if (tab.components[0].setting.useMSearch === 'true') {
              useMSearch = true
            }
  
            tab.components[0].action.forEach(btn => {
              if (btn.OpenType === 'popview' && btn.config) {
@@ -145,14 +140,14 @@
      })
    }
    if (useMSearch) {
    if (_config.components[0].search && _config.components[0].search.length > 0) {
      let cell = {
        uuid: Utils.getuuid(),
        type: 'search',
        width: 24,
        subtype: 'mainsearch',
        name: '搜索',
        search: _config.components[0].search || [],
        search: _config.components[0].search,
        style: {borderBottomColor: '#f0f0f0', borderBottomWidth: '1px'},
        wrap: {float: 'left', blacklist: [], name: '搜索', width: 24}
      }
@@ -218,7 +213,8 @@
      type: 'admin',
      OpenType: _config.OpenType,
      PageParam: {Template: 'CustomPage', OpenType: 'newtab', hidden: _config.hidden},
      MenuType: 'custom'
      MenuType: 'custom',
      lang: sessionStorage.getItem('lang')
    }
    let url = window.btoa(window.encodeURIComponent(JSON.stringify(urlparam)))