fix: update

This commit is contained in:
Fine 2024-01-12 19:43:27 +08:00
parent eea69ccfb5
commit 480cf75f52
4 changed files with 5 additions and 6 deletions

View File

@ -1,4 +1,3 @@
import { dashboardStore } from "./dashboard";
/** /**
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with * contributor license agreements. See the NOTICE file distributed with

View File

@ -170,7 +170,7 @@ limitations under the License. -->
:tags="currentRow.expressions || []" :tags="currentRow.expressions || []"
:vertical="true" :vertical="true"
:text="t('addExpressions')" :text="t('addExpressions')"
@change="(param) => changeExpressions(param)" @change="(param: string[]) => changeExpressions(param)"
/> />
</div> </div>
<template #footer> <template #footer>

View File

@ -272,7 +272,7 @@ export function hierarchy(levels: Node[][], calls: Call[], radius: number) {
export function computeHierarchyLevels(nodes: Node[]) { export function computeHierarchyLevels(nodes: Node[]) {
const levelsNum: number[] = nodes.map((d: Node) => d.l || 0); const levelsNum: number[] = nodes.map((d: Node) => d.l || 0);
const list = [...new Set(levelsNum)]; const list = [...new Set(levelsNum)];
const sortedArr = list.sort((a, b) => a - b); const sortedArr = list.sort((a, b) => b - a);
const nodesList = []; const nodesList = [];
for (const min of sortedArr) { for (const min of sortedArr) {

View File

@ -57,7 +57,7 @@ limitations under the License. -->
:tags="states.linkServerExpressions" :tags="states.linkServerExpressions"
:vertical="true" :vertical="true"
:text="t('addExpressions')" :text="t('addExpressions')"
@change="(param) => changeLinkServerExpressions(param)" @change="(param: string[]) => changeLinkServerExpressions(param)"
/> />
</div> </div>
<Selector <Selector
@ -92,7 +92,7 @@ limitations under the License. -->
:tags="states.linkClientExpressions" :tags="states.linkClientExpressions"
:vertical="true" :vertical="true"
:text="t('addExpressions')" :text="t('addExpressions')"
@change="(param) => changeLinkClientExpressions(param)" @change="(param: string[]) => changeLinkClientExpressions(param)"
/> />
</div> </div>
<Selector <Selector
@ -168,7 +168,7 @@ limitations under the License. -->
:tags="states.nodeExpressions" :tags="states.nodeExpressions"
:vertical="true" :vertical="true"
:text="t('addExpressions')" :text="t('addExpressions')"
@change="(param) => changeNodeExpressions(param)" @change="(param: string[]) => changeNodeExpressions(param)"
/> />
</div> </div>
<Selector <Selector