king
2023-03-16 b26252d4e842e2561b5295b0d07ae98a4eaa3fe6
src/menu/pastecontroller/index.jsx
@@ -18,9 +18,7 @@
    visible: false
  }
  resetconfig = (item) => {
    let appType = sessionStorage.getItem('appType')
  resetconfig = (item, appType) => {
    if (item.type === 'tabs') {
      item.uuid = MenuUtils.getuuid()
      item.setting.name = item.setting.name + MenuUtils.getSignName()
@@ -34,7 +32,7 @@
        }
        tab.components = tab.components.map(cell => {
          cell = this.resetconfig(cell)
          cell = this.resetconfig(cell, appType)
          return cell
        })
      })
@@ -44,11 +42,11 @@
      item.name = item.setting.name
      item.components = item.components.map(cell => {
        cell = MenuUtils.resetComponentConfig(cell)
        cell = MenuUtils.resetComponentConfig(cell, appType)
        return cell
      })
    } else {
      item = MenuUtils.resetComponentConfig(item)
      item = MenuUtils.resetComponentConfig(item, appType)
    }
    return item
@@ -78,7 +76,7 @@
        return
      }
      res = this.resetconfig(res)
      res = this.resetconfig(res, appType)
      // delete res.copyType