diff --git a/src/store/modules/topology.ts b/src/store/modules/topology.ts index 1a399134..6a47f310 100644 --- a/src/store/modules/topology.ts +++ b/src/store/modules/topology.ts @@ -485,7 +485,7 @@ export const topologyStore = defineStore({ } const { getExpressionQuery, handleExpressionValues } = useQueryTopologyExpressionsProcessor( expressions, - this.nodes, + this.nodes.filter((d: Node) => d.isReal), ); const param = getExpressionQuery(); const res = await this.getNodeExpressionValue(param); diff --git a/src/views/dashboard/related/topology/service/ServiceMap.vue b/src/views/dashboard/related/topology/service/ServiceMap.vue index 10433cca..f6054686 100644 --- a/src/views/dashboard/related/topology/service/ServiceMap.vue +++ b/src/views/dashboard/related/topology/service/ServiceMap.vue @@ -318,13 +318,12 @@ limitations under the License. --> opt.unit || "unknown" }`; }); - const tipHtml = [ - `
name: ${ - data.name - }
type: ${data.type || "UNKNOWN"}
`, - ...html, - ].join(" "); - + let tipHtml = `
name: ${ + data.name + }
type: ${data.type || "UNKNOWN"}
`; + if (data.isReal) { + tipHtml = [tipHtml, ...html].join(" "); + } tooltip.value .style("top", event.offsetY + 10 + "px") .style("left", event.offsetX + 10 + "px") @@ -520,7 +519,11 @@ limitations under the License. --> } function initNodeMenus() { items.value = [ - { id: "hierarchyServices", title: "Hierarchy Services", func: handleHierarchyRelatedServices }, + { + id: "hierarchyServices", + title: "Hierarchy Services", + func: handleHierarchyRelatedServices, + }, { id: "inspect", title: "Inspect", func: handleInspect }, { id: "alerting", title: "Alerting", func: handleGoAlerting }, ];