componentDidMount()

in src/routes/Home/index.js [45:64]


  componentDidMount() {
    const token = window.sessionStorage.getItem("token");
    if (token) {
      const { dispatch } = this.props;
      dispatch({
        type: "global/fetchPlatform"
      });
    }
    activePluginSnapshot().then(res => {
      if (res) {
        this.setState({ activePluginSnapshot: res.data || [] })
      }
    });
    getNewEventRecodLogList().then(res => {
      if (res) {
        this.setState({ activeLog: res.data || [] })
      }
    })

  }