diff --git a/src/store/modules/topology.ts b/src/store/modules/topology.ts index 5e4be771..8e88b28f 100644 --- a/src/store/modules/topology.ts +++ b/src/store/modules/topology.ts @@ -592,6 +592,9 @@ export const topologyStore = defineStore({ }, async queryHierarchyNodeExpressions(expressions: string[], layer: string) { const nodes = this.hierarchyServiceNodes.filter((n: Node) => n.layer === layer); + if (!nodes.length) { + return; + } if (!expressions.length) { this.setHierarchyNodeMetricValue({}, layer); return; diff --git a/src/views/dashboard/related/topology/config/HierarchySettings.vue b/src/views/dashboard/related/topology/config/HierarchySettings.vue index e1e0575e..7a10a0a6 100644 --- a/src/views/dashboard/related/topology/config/HierarchySettings.vue +++ b/src/views/dashboard/related/topology/config/HierarchySettings.vue @@ -24,7 +24,7 @@ limitations under the License. --> @change="changeLayer" class="inputs" /> -
+
{{ t("nodeMetrics") }}