king
2023-08-16 4363b084d8dd0d994dfa2b9894d040e5c1f3ae05
src/tabviews/home/index.jsx
@@ -56,8 +56,8 @@
      MenuID: this.props.MenuID
    }
    Api.getCacheConfig(_param).then(result => {
      if (result.status) {
        if (result.LongParam) {
      let view = 'default'
      if (result.status && result.LongParam) {
          let config = ''
          try { // 配置信息解析
@@ -67,7 +67,12 @@
            config = ''
          }
          if (!config || !config.enabled) {
        if (config && config.enabled) {
          view = 'custom'
        }
      }
      if (view === 'default') {
            this.setState({
              loading: false,
              waiting: false,
@@ -79,19 +84,8 @@
              view: 'custom'
            })
          }
        } else {
          this.setState({
            loading: false,
            waiting: false,
            view: 'default'
          })
        }
      } else {
        this.setState({
          loading: false,
          waiting: false,
          view: 'default'
        })
      if (!result.status) {
        notification.warning({
          top: 92,
          message: result.message,