This commit is contained in:
Fine 2022-10-28 17:24:44 +08:00
parent 7ebe6adc9a
commit c0ff372aaa

View File

@ -115,7 +115,7 @@ const currentMetric = ref<MetricConfigOpt>({
topN: props.currentMetricConfig.topN || 10, topN: props.currentMetricConfig.topN || 10,
}); });
const metricTypes = dashboardStore.selectedGrid.metricTypes || []; const metricTypes = dashboardStore.selectedGrid.metricTypes || [];
const metricType = ref<string>(metricTypes[props.index]); const metricType = computed(() => metricTypes[props.index]);
const hasLabel = computed(() => { const hasLabel = computed(() => {
const graph = dashboardStore.selectedGrid.graph || {}; const graph = dashboardStore.selectedGrid.graph || {};
return ( return (