king
2023-01-17 cc1a76df575c18f0d0ee96e8658461efdce3a918
src/tabviews/home/index.jsx
@@ -72,10 +72,28 @@
    Api.getCacheConfig(_param).then(result => {
      if (result.status) {
        if (result.LongParam) {
          this.setState({
            loading: false,
            view: 'custom'
          })
          let config = ''
          try { // 配置信息解析
            config = JSON.parse(window.decodeURIComponent(window.atob(result.LongParam)))
          } catch (e) {
            console.warn('Parse Failure')
            config = ''
          }
          if (!config || !config.enabled) {
            this.setState({
              loading: false,
              waitMenu: false,
              waitAction: false,
              view: 'default'
            })
          } else {
            this.setState({
              loading: false,
              view: 'custom'
            })
          }
        } else {
          this.setState({
            loading: false,
@@ -87,6 +105,8 @@
      } else {
        this.setState({
          loading: false,
          waitMenu: false,
          waitAction: false,
          view: 'default'
        })
        notification.warning({