in src/routes/Home/index.js [61:83]
componentDidMount() {
const token = window.sessionStorage.getItem("token");
if (token) {
const { dispatch } = this.props;
dispatch({
type: "global/fetchPlatform",
});
}
const currentNamespaceId =
window.sessionStorage.getItem("currentNamespaceId");
activePluginSnapshotByNamespace({ namespaceId: currentNamespaceId }).then(
(res) => {
if (res) {
this.setState({ activePluginSnapshot: res.data || [] });
}
},
);
getNewEventRecodLogList().then((res) => {
if (res) {
this.setState({ activeLog: res.data || [] });
}
});
}