king
2021-01-07 2292d1826e69e21c8a411c217faef635fe57d458
src/utils/utils-update.js
@@ -58,6 +58,7 @@
    }
    if (config.version < '1.1') {
      config.version = '1.1'
      if (config.setting.interType === 'inner' && !config.setting.innerFunc) {
        config.setting.interType = 'system'
      }
@@ -70,7 +71,17 @@
      })
    }
    config.version = '1.1'
    if (config.version < '1.2') {
      config.version = '1.2'
      // 兼容功能按钮
      config.action = config.action.map(item => {
        if (item.execMode) {
          item.OpenType = 'funcbutton'
        }
        return item
      })
    }
    config.Template = 'CommonTable'
    return config
@@ -127,6 +138,7 @@
    }
    if (config.version < '1.1') {
      config.version = '1.1'
      if (config.setting.interType === 'inner' && !config.setting.innerFunc) {
        config.setting.interType = 'system'
      }
@@ -139,7 +151,17 @@
      })
    }
    config.version = '1.1'
    if (config.version < '1.2') {
      config.version = '1.2'
      // 兼容功能按钮
      config.action = config.action.map(item => {
        if (item.execMode) {
          item.OpenType = 'funcbutton'
        }
        return item
      })
    }
    config.Template = 'SubTable'
    return config