king
2023-08-14 cc20b3cfe18b36c7b0f75937f88679eb031ecc6f
src/tabviews/custom/components/card/balcony/index.jsx
@@ -144,7 +144,7 @@
    if (config.wrap.datatype === 'dynamic') {
      if (config.timer) {
        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()
@@ -180,7 +180,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)
            }
  
@@ -206,7 +206,7 @@
        if (config.setting.onload === 'true') {
          setTimeout(() => {
            this.loadData()
            this.loadData('init')
          }, config.setting.delay || 0)
        }
      }
@@ -354,7 +354,7 @@
    this.loadData()
  }
  async loadData (hastimer) {
  async loadData (type) {
    const { config, arr_field, BID, BData } = this.state
    if (config.wrap.datatype === 'public') {
@@ -377,7 +377,7 @@
    let searches = []
    if (!hastimer) {
    if (type !== 'timer') {
      this.setState({
        loading: true
      })
@@ -391,7 +391,7 @@
      let _data = {}
      this.loaded = true
      if (config.$cache && config.setting.onload !== 'false') {
      if (config.$cache && type === 'init') {
        Api.writeCacheConfig(config.uuid, result.data || [])
      }