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,
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;

View File

@ -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);
}

View File

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