From 4c6426109cb640f6c265ba7458b25d4c6aaa4670 Mon Sep 17 00:00:00 2001 From: Fine Date: Thu, 11 Apr 2024 17:08:38 +0800 Subject: [PATCH] fix: update --- src/store/modules/dashboard.ts | 4 ---- src/views/dashboard/configuration/Widget.vue | 5 ----- src/views/dashboard/graphs/Table.vue | 1 - 3 files changed, 10 deletions(-) diff --git a/src/store/modules/dashboard.ts b/src/store/modules/dashboard.ts index 6d7384ea..666577c6 100644 --- a/src/store/modules/dashboard.ts +++ b/src/store/modules/dashboard.ts @@ -88,8 +88,6 @@ export const dashboardStore = defineStore({ i: index, id: index, type, - metricTypes: [""], - metrics: [""], }; if (type === WidgetType.Tab) { newItem.h = 36; @@ -163,8 +161,6 @@ export const dashboardStore = defineStore({ i: index, id, type, - metricTypes: [""], - metrics: [""], }; if (type === WidgetType.Topology) { newItem.h = 32; diff --git a/src/views/dashboard/configuration/Widget.vue b/src/views/dashboard/configuration/Widget.vue index 70e790f2..d3c8355d 100644 --- a/src/views/dashboard/configuration/Widget.vue +++ b/src/views/dashboard/configuration/Widget.vue @@ -138,13 +138,8 @@ limitations under the License. --> function applyConfig() { dashboardStore.setConfigPanel(false); - let p = { - metrics: [], - metricTypes: [], - }; dashboardStore.selectWidget({ ...dashboardStore.selectedGrid, - ...p, }); dashboardStore.setConfigs(dashboardStore.selectedGrid); } diff --git a/src/views/dashboard/graphs/Table.vue b/src/views/dashboard/graphs/Table.vue index 80417b44..baaf2190 100644 --- a/src/views/dashboard/graphs/Table.vue +++ b/src/views/dashboard/graphs/Table.vue @@ -56,7 +56,6 @@ limitations under the License. --> type: Object as PropType<{ showTableValues: boolean; tableHeaderCol2: string; - metricTypes: string[]; typesOfMQE: string[]; }>, default: () => ({ showTableValues: true }),