This commit is contained in:
Fine 2025-04-24 11:20:45 +08:00
parent 5a01f93494
commit 7bb0728751

View File

@ -130,11 +130,7 @@ export async function useDashboardQueryProcessor(configList: Indexable[]) {
item.metric.labels.map((d: { key: string; value: string }) => `${d.key}=${d.value}`).join(",");
const values = item.values.map((d: { value: unknown }) => d.value) || [];
if (results.length === 1) {
if (label) {
label = `${c.label || name}, ${label}`;
} else {
label = c.label || name;
}
label = label ? `${c.label || name}, ${label}` : c.label || name;
}
source[label] = values;
}