fix: update

This commit is contained in:
Fine 2024-04-11 17:08:38 +08:00
parent d13abb8c8f
commit 4c6426109c
3 changed files with 0 additions and 10 deletions

View File

@ -88,8 +88,6 @@ export const dashboardStore = defineStore({
i: index, i: index,
id: index, id: index,
type, type,
metricTypes: [""],
metrics: [""],
}; };
if (type === WidgetType.Tab) { if (type === WidgetType.Tab) {
newItem.h = 36; newItem.h = 36;
@ -163,8 +161,6 @@ export const dashboardStore = defineStore({
i: index, i: index,
id, id,
type, type,
metricTypes: [""],
metrics: [""],
}; };
if (type === WidgetType.Topology) { if (type === WidgetType.Topology) {
newItem.h = 32; newItem.h = 32;

View File

@ -138,13 +138,8 @@ limitations under the License. -->
function applyConfig() { function applyConfig() {
dashboardStore.setConfigPanel(false); dashboardStore.setConfigPanel(false);
let p = {
metrics: [],
metricTypes: [],
};
dashboardStore.selectWidget({ dashboardStore.selectWidget({
...dashboardStore.selectedGrid, ...dashboardStore.selectedGrid,
...p,
}); });
dashboardStore.setConfigs(dashboardStore.selectedGrid); dashboardStore.setConfigs(dashboardStore.selectedGrid);
} }

View File

@ -56,7 +56,6 @@ limitations under the License. -->
type: Object as PropType<{ type: Object as PropType<{
showTableValues: boolean; showTableValues: boolean;
tableHeaderCol2: string; tableHeaderCol2: string;
metricTypes: string[];
typesOfMQE: string[]; typesOfMQE: string[];
}>, }>,
default: () => ({ showTableValues: true }), default: () => ({ showTableValues: true }),