king
2023-08-14 f078c137d61270d243cd8e03077fa9cf000e276b
src/tabviews/custom/components/code/sand-box/index.jsx
@@ -116,7 +116,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)
              }
    
@@ -142,7 +142,7 @@
  
          if (config.setting.onload === 'true') {
            setTimeout(() => {
              this.loadData()
              this.loadData('init')
            }, config.setting.delay || 0)
          } else if (this.loaded) {
            this.renderView()
@@ -204,7 +204,7 @@
    this.loadData()
  }
  async loadData () {
  async loadData (type) {
    const { config, arr_field, BID } = this.state
    if (config.wrap.datatype === 'static') {
@@ -243,7 +243,7 @@
      let _data = result.data || []
      this.loaded = true
      if (config.$cache && config.setting.onload !== 'false') {
      if (config.$cache && type === 'init') {
        Api.writeCacheConfig(config.uuid, result.data || [])
      }