fix: end loading without query results (#373)

This commit is contained in:
Fine0830 2024-02-26 19:57:02 +08:00 committed by GitHub
parent d0ebdefcee
commit e25bf9ee8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -153,9 +153,14 @@ export async function useExpressionsQueryProcessor(config: Indexable) {
ElMessage.error(json.errors);
return { source: {}, tips: [], typesOfMQE: [] };
}
const data = expressionsSource(json);
try {
const data = expressionsSource(json);
return data;
return data;
} catch (error) {
console.error(error);
return { source: {}, tips: [], typesOfMQE: [] };
}
}
export async function useExpressionsQueryPodsMetrics(