mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-12 15:52:57 +00:00
fix: update
This commit is contained in:
parent
5346ca417a
commit
75bddab9e6
@ -113,7 +113,7 @@ export async function useExpressionsQueryProcessor(config: Indexable) {
|
||||
if (!obj.error) {
|
||||
if (type === ExpressionResultType.TIME_SERIES_VALUES) {
|
||||
if (results.length === 1) {
|
||||
const label = results[0].metric && results[0].metric.labels[0].value;
|
||||
const label = results[0].metric && results[0].metric.labels[0] && results[0].metric.labels[0].value;
|
||||
source[c.label || label || name] = results[0].values.map((d: { value: unknown }) => d.value) || [];
|
||||
} else {
|
||||
const labels = (c.label || "").split(",").map((item: string) => item.replace(/^\s*|\s*$/g, ""));
|
||||
@ -130,8 +130,7 @@ export async function useExpressionsQueryProcessor(config: Indexable) {
|
||||
}
|
||||
}
|
||||
if (type === ExpressionResultType.SINGLE_VALUE) {
|
||||
const label = results[0].metric && results[0].metric.labels[0].value;
|
||||
source[c.label || label || name] = (results[0].values[0] || {}).value;
|
||||
source[c.label || name] = (results[0].values[0] || {}).value;
|
||||
}
|
||||
if (([ExpressionResultType.RECORD_LIST, ExpressionResultType.SORTED_LIST] as string[]).includes(type)) {
|
||||
source[name] = results[0].values;
|
||||
|
@ -51,7 +51,7 @@ limitations under the License. -->
|
||||
default: () => ({ showTableValues: true }),
|
||||
},
|
||||
});
|
||||
console.log(props.data);
|
||||
|
||||
const { t } = useI18n();
|
||||
const nameWidth = computed(() => (props.config.showTableValues ? "80%" : "100%"));
|
||||
const dataKeys = computed(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user