king
2023-08-23 53b68578c161561700bd77759629daa1608e05ca
src/tabviews/custom/components/calendar/index.jsx
@@ -100,11 +100,11 @@
  }
  initExec = () => {
    const { config } = this.state
    const { config, BID } = this.state
    if (config.$cache) {
      if (config.$time) {
        Api.getLCacheConfig(config.uuid, config.$time).then(res => {
        Api.getLCacheConfig(config.uuid, config.$time, BID).then(res => {
          if (!res.valid && config.setting.onload === 'true') {
            setTimeout(() => {
              this.loadData('init')
@@ -128,7 +128,7 @@
          this.setState({data: _data})
        })
      } else {
        Api.getLCacheConfig(config.uuid, 0).then(res => {
        Api.getLCacheConfig(config.uuid, 0, BID).then(res => {
          if (!res.data || this.loaded) return
  
          let _data = []
@@ -243,7 +243,7 @@
    if (result.status) {
      this.loaded = true
      if (config.$cache && type === 'init') {
        Api.writeCacheConfig(config.uuid, result.data || [])
        Api.writeCacheConfig(config.uuid, result.data || [], BID)
      }
      let data = []