From c0ff372aaa01c496fd99a874bc8977f95c13ff67 Mon Sep 17 00:00:00 2001 From: Fine Date: Fri, 28 Oct 2022 17:24:44 +0800 Subject: [PATCH] fix --- src/views/dashboard/configuration/widget/metric/Standard.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/dashboard/configuration/widget/metric/Standard.vue b/src/views/dashboard/configuration/widget/metric/Standard.vue index 150c2204..65d3ae6f 100644 --- a/src/views/dashboard/configuration/widget/metric/Standard.vue +++ b/src/views/dashboard/configuration/widget/metric/Standard.vue @@ -115,7 +115,7 @@ const currentMetric = ref({ topN: props.currentMetricConfig.topN || 10, }); const metricTypes = dashboardStore.selectedGrid.metricTypes || []; -const metricType = ref(metricTypes[props.index]); +const metricType = computed(() => metricTypes[props.index]); const hasLabel = computed(() => { const graph = dashboardStore.selectedGrid.graph || {}; return (