king
2023-08-08 dc258e4600bea2fba1e25054d163a2f4b1326a85
src/tabviews/custom/components/card/double-data-card/index.jsx
@@ -286,21 +286,21 @@
      
      if (config.$time && !config.setting.laypage) {
        Api.getLCacheConfig(config.uuid, config.$time).then(res => {
          if (!res) {
          if (!res.valid) {
            setTimeout(() => {
              this.loadData()
            }, config.setting.delay || 0)
          }
          if (!res) return
          if (!res.data) return
  
          this.setState({data: getData(res)})
          this.setState({data: getData(res.data)})
        })
      } else {
        Api.getLCacheConfig(config.uuid, 0).then(res => {
          if (!res || this.loaded) return
          if (!res.data || this.loaded) return
  
          this.setState({data: getData(res)})
          this.setState({data: getData(res.data)})
        })
        setTimeout(() => {
@@ -566,7 +566,7 @@
      if (selected !== 'false' || (id && config.wrap.selected !== 'false')) {
        setTimeout(() => {
          this.checkTopLine(id)
        }, 200)
        }, 10)
        if (selected === 'init') {
          this.setState({selected: 'false'})
        }
@@ -615,7 +615,7 @@
      if (selected !== 'false' || (id && config.wrap.selected !== 'false')) {
        setTimeout(() => {
          this.checkTopLine(id)
        }, 200)
        }, 10)
        if (selected === 'init') {
          this.setState({selected: 'false'})
        }