king
2022-10-26 fb64bcf1fab18b33d21470c83f28d4cda8d309ce
src/menu/components/carousel/prop-card/index.jsx
@@ -30,7 +30,6 @@
  }
  state = {
    appType: sessionStorage.getItem('appType'),
    card: null,
    back: false
  }
@@ -199,7 +198,6 @@
   * @description 单个卡片信息更新
   */
  deleteCard = (cell) => {
    const { appType } = this.state
    let card = fromJS(this.state.card).toJS()
    let _this = this
@@ -209,20 +207,6 @@
        card.subcards = card.subcards.filter(item => item.uuid !== cell.uuid)
        _this.updateComponent(card)
        if (appType === 'mob') return
        let uuids = []
        cell.elements && cell.elements.forEach(c => {
          if (c.eleType !== 'button' || (appType === 'pc' && c.OpenType !== 'popview')) return
          uuids.push(c.uuid)
        })
        if (uuids.length === 0) return
        MKEmitter.emit('delButtons', uuids)
      },
      onCancel() {}
    })