king
2024-11-26 24700d6c2100446a4c0c7b464ba740ee2fa357ab
2024-11-26
1个文件已修改
23 ■■■■■ 已修改文件
src/tabviews/custom/components/interfaces/interItem/index.jsx 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/interfaces/interItem/index.jsx
@@ -1,4 +1,4 @@
import {Component} from 'react'
import { Component } from 'react'
import PropTypes from 'prop-types'
import Api from '@/api'
@@ -15,6 +15,7 @@
  }
  loading = false
  loadTimer = null
  
  state = {
    BID: ''
@@ -39,9 +40,7 @@
    }
    if (config.setting.onload !== 'false') {
      setTimeout(() => {
        this.loadData()
      }, config.setting.delay)
      this.loadData()
    } else {
      MKEmitter.addListener('initFinish', this.initFinish)
    }
@@ -84,9 +83,7 @@
    if (config.MenuID !== MenuID) return
    if (config.setting.onload === 'false') {
      setTimeout(() => {
        this.loadData()
      }, config.setting.delay)
      this.loadData()
    }
  }
@@ -107,7 +104,17 @@
    this.loadData()
  }
  async loadData () {
  loadData = () => {
    const { config } = this.props
    this.loadTimer && clearTimeout(this.loadTimer)
    this.loadTimer = setTimeout(() => {
      this.execLoadData()
    }, config.setting.delay)
  }
  async execLoadData () {
    const { config } = this.props
    const { BID } = this.state