king
2023-08-14 f078c137d61270d243cd8e03077fa9cf000e276b
src/tabviews/custom/components/card/prop-card/index.jsx
@@ -146,7 +146,7 @@
    if (config.timer && config.wrap.datatype === 'dynamic') {
      this.timer = new TimerTask()
      this.timer.init(config.uuid, config.timer, config.timerRepeats, () => {this.loadData(true)})
      this.timer.init(config.uuid, config.timer, config.timerRepeats, () => {this.loadData('timer')})
    }
    this.initExec()
@@ -182,7 +182,7 @@
            Api.getLCacheConfig(config.uuid, config.$time).then(res => {
              if (!res.valid && config.setting.onload === 'true') {
                setTimeout(() => {
                  this.loadData()
                  this.loadData('init')
                }, config.setting.delay || 0)
              }
@@ -221,7 +221,7 @@
  
          if (config.setting.onload === 'true') {
            setTimeout(() => {
              this.loadData()
              this.loadData('init')
            }, config.setting.delay || 0)
          } else if (this.loaded) {
            if (config.wrap.goback === 'true' && data.$$empty) {
@@ -429,7 +429,7 @@
    if ((position === 'mainline' || position === 'popclose') && config.setting.supModule && BID) { // 刷新源组件时,附带刷新上级行与当前组件
      MKEmitter.emit('reloadData', config.setting.supModule, BID)
    } else {
      this.loadData(false, btn)
      this.loadData('', btn)
    }
  }
@@ -487,7 +487,7 @@
    this.loadData()
  }
  async loadData (hastimer, btn) {
  async loadData (type, btn) {
    const { config, arr_field, BID, BData, selected } = this.state
    if (config.wrap.datatype === 'public') {
@@ -521,7 +521,7 @@
      return
    }
    if (!hastimer) {
    if (type !== 'timer') {
      this.setState({
        loading: true
      })
@@ -535,7 +535,7 @@
      let _data = {}
      this.loaded = true
      if (config.$cache && config.setting.onload !== 'false') {
      if (config.$cache && type === 'init') {
        Api.writeCacheConfig(config.uuid, result.data || [])
      }