king
2022-08-02 8d66ff34fae5b048a6b7923cc75d34f13a08be9d
src/menu/components/share/copycomponent/index.jsx
@@ -7,8 +7,8 @@
class CopyComponent extends Component {
  static propTpyes = {
    btnlog: PropTypes.array,
    handlelog: PropTypes.func
    type: PropTypes.string,
    card: PropTypes.object
  }
  trigger = () => {
@@ -24,6 +24,23 @@
        _val.$srcId = srcid
      }
      if (type === 'menucell') {
        _val.setting.type = 'linkmenu'
        _val.setting.linkMenuId = ''
        _val.setting.copyMenuId = ''
      } else if (_val.type === 'menubar' && _val.subtype === 'menubar') {
        let cell = _val.subMenus[0]
        _val.subMenus = []
        if (cell) {
          cell.setting.type = 'menu'
          cell.setting.linkMenuId = ''
          cell.setting.copyMenuId = ''
          _val.subMenus.push(cell)
        }
      }
      _val = window.btoa(window.encodeURIComponent(JSON.stringify(_val)))
    } catch (e) {
      message.warning('复制失败,请重试!')