king
2023-03-24 deab3ddf1990cd25b4692d1358ac9d50856644f0
src/tabviews/custom/components/tree/antd-tree/index.jsx
@@ -260,7 +260,7 @@
    let result = await Api.genericInterface(param)
    if (result.status) {
      this.loaded = true
      if (config.$cache) {
      if (config.$cache && config.setting.onload !== 'false') {
        Api.writeCacheConfig(config.uuid, result.data || '')
      }
@@ -270,6 +270,13 @@
      }, () => {
        this.handleData()
      })
      if (config.timer && config.clearField && result.data && result.data[0]) {
        let vals = (config.clearValue || '').split(',')
        if (vals.includes(result.data[0][config.clearField])) {
          this.timer && this.timer.stop()
        }
      }
    } else {
      this.setState({
        loading: false