fix types

This commit is contained in:
Fine 2024-11-28 16:48:48 +08:00
parent 47f30f192e
commit d24946665e

View File

@ -117,12 +117,12 @@ limitations under the License. -->
return attr.map((d: { name: string; value: string }) => `${d.name}=${d.value}`).join("; "); return attr.map((d: { name: string; value: string }) => `${d.name}=${d.value}`).join("; ");
}; };
function changeLabels(opt: any[]) { function changeLabels(opt: Option[]) {
const arr = opt.map((d) => d.value); const arr = opt.map((d) => d.value);
selectedLabels.value = arr; selectedLabels.value = arr;
} }
function changeAggregateType(opt: any[]) { function changeAggregateType(opt: Option[]) {
aggregateType.value = opt[0].value; aggregateType.value = opt[0].value;
ebpfStore.setAnalyzeTrees([]); ebpfStore.setAnalyzeTrees([]);
} }