fix: types

This commit is contained in:
Fine 2024-08-22 16:18:44 +08:00
parent c7dc08f62c
commit fc76295bfb

View File

@ -119,7 +119,8 @@ limitations under the License. -->
metricConfig: props.data.metricConfig || [], metricConfig: props.data.metricConfig || [],
id: props.data.i, id: props.data.i,
}; };
const metrics = (await useDashboardQueryProcessor([config])) || {}; const metrics: { [key: string]: { source: { [key: string]: unknown }; typesOfMQE: string[] } } =
(await useDashboardQueryProcessor([config])) || {};
const params = metrics[data.value.i]; const params = metrics[data.value.i];
loading.value = false; loading.value = false;
state.source = params.source || {}; state.source = params.source || {};