update id to cluster_id
This commit is contained in:
parent
37e5d860be
commit
7a8651bf1e
|
@ -30,13 +30,13 @@ export default [
|
|||
name: 'overview',
|
||||
component: './Cluster/Overview',
|
||||
}, {
|
||||
path: '/cluster/overview/:elasticsearch',
|
||||
path: '/cluster/overview/:cluster_id',
|
||||
name: 'overview',
|
||||
component: './Cluster/Overview',
|
||||
hideInMenu: true,
|
||||
},
|
||||
{
|
||||
path: '/cluster/monitoring/:name',
|
||||
path: '/cluster/monitoring/:cluster_id',
|
||||
name: 'cluster',
|
||||
component: './Cluster/ClusterMonitor',
|
||||
hideInMenu: true,
|
||||
|
@ -45,7 +45,7 @@ export default [
|
|||
name: 'monitoring',
|
||||
component: './Cluster/Metrics',
|
||||
}, {
|
||||
path: '/cluster/metrics/:elasticsearch',
|
||||
path: '/cluster/metrics/:cluster_id',
|
||||
name: 'monitoring',
|
||||
component: './Cluster/Metrics',
|
||||
hideInMenu: true,
|
||||
|
|
|
@ -243,7 +243,7 @@ class ClusterMonitor extends PureComponent {
|
|||
componentDidMount() {
|
||||
const {match, location} = this.props;
|
||||
|
||||
const queryESID=this.props.match.params.elasticsearch;
|
||||
const queryESID=this.props.match.params.cluster_id;
|
||||
|
||||
if (queryESID !== null&&queryESID !== undefined){
|
||||
this.state.clusterID=queryESID
|
||||
|
|
Loading…
Reference in New Issue