fix: update

This commit is contained in:
Fine 2024-08-21 15:20:26 +08:00
parent 7ebb2ff48a
commit 8bf5a6c169
2 changed files with 1 additions and 4 deletions

View File

@ -109,7 +109,6 @@ limitations under the License. -->
const { data } = toRefs(props);
const appStore = useAppStoreWithOut();
const dashboardStore = useDashboardStore();
const selectorStore = useSelectorStore();
const graph = computed(() => props.data.graph || {});
const widget = computed(() => props.data.widget || {});
const isList = computed(() => ListChartTypes.includes((props.data.graph && props.data.graph.type) || ""));
@ -178,13 +177,11 @@ limitations under the License. -->
watch(
() => props.metricsValues,
() => {
loading.value = true;
const params = props.metricsValues[data.value.i];
if (params) {
state.source = params.source || {};
typesOfMQE.value = params.typesOfMQE;
}
loading.value = false;
},
);

View File

@ -85,7 +85,7 @@ limitations under the License. -->
widgets.push(...item.children[index].children);
}
}
const configList = widgets.map((d: any) => ({
const configList = widgets.map((d: LayoutConfig) => ({
metrics: d.expressions || [],
metricConfig: d.metricConfig || [],
id: d.i,