king
2023-12-24 43008f1240d6568a3364721bb01fc7e31b33d147
src/tabviews/custom/components/card/data-card/index.jsx
@@ -236,6 +236,8 @@
    }
    this.initExec()
    this.autoExec()
  }
  shouldComponentUpdate (nextProps, nextState) {
@@ -330,6 +332,25 @@
    }
  }
  autoExec = (times) => {
    const { config } = this.state
    if (!config.wrap.autoExec) return
    let btn = document.getElementById('button' + config.wrap.autoExec)
    this.autoTimer && clearTimeout(this.autoTimer)
    if (btn) {
      MKEmitter.emit('triggerBtnId', config.wrap.autoExec, [])
    } else if (!times || times < 20) {
      times = times ? times + 1 : 1
      this.autoTimer = setTimeout(() => {
        this.autoExec(times)
      }, 1000)
    }
  }
  transferSyncData = (syncId) => {
    const { config } = this.state