fix: types

This commit is contained in:
Fine 2024-01-15 21:55:47 +08:00
parent 3e2cd23f16
commit 920ce678ca
3 changed files with 3 additions and 2 deletions

View File

@ -51,6 +51,7 @@ export interface Node {
y?: number;
level?: number;
l?: number;
key?: string;
}
export interface ServiceHierarchy {

View File

@ -148,7 +148,7 @@ limitations under the License. -->
popover.value.style("visibility", "hidden");
}
function handleNodeClick(event: MouseEvent, d: Node & { serviceId: string; key: string }) {
function handleNodeClick(event: MouseEvent, d: Node & { serviceId: string }) {
const origin = dashboardStore.entity;
event.stopPropagation();
hideTip();

View File

@ -156,7 +156,7 @@ limitations under the License. -->
popover.value.style("visibility", "hidden");
}
function handleNodeClick(event: MouseEvent, d: Node & { key: string }) {
function handleNodeClick(event: MouseEvent, d: Node) {
const origin = dashboardStore.entity;
event.stopPropagation();
hideTip();