diff --git a/src/store/modules/dashboard.ts b/src/store/modules/dashboard.ts index 20d28df1..e8d82433 100644 --- a/src/store/modules/dashboard.ts +++ b/src/store/modules/dashboard.ts @@ -51,22 +51,12 @@ export const dashboardStore = defineStore({ w: 24, h: 12, i: String(this.layout.length), - metrics: ["service_resp_time"], - queryMetricType: "readMetricsValues", type: "Widget", widget: { - title: "Title123", - tips: "Tooltip123", - }, - graph: { - showBackground: true, - barWidth: 30, - type: "Line", - }, - standard: { - sortOrder: "DEC", - unit: "s", + title: "Title", }, + graph: {}, + standard: {}, }; this.layout = this.layout.map((d: LayoutConfig) => { d.y = d.y + newWidget.h; @@ -131,22 +121,12 @@ export const dashboardStore = defineStore({ w: 24, h: 12, i: String(children.length), - metrics: ["service_resp_time"], - queryMetricType: "readMetricsValues", type: "Widget", widget: { - title: "Title123", - tips: "Tooltip123", - }, - graph: { - showBackground: true, - barWidth: 30, - type: "Line", - }, - standard: { - sortOrder: "DEC", - unit: "s", + title: "Title", }, + graph: {}, + standard: {}, }; if (this.layout[idx].children) { const items = children.map((d: LayoutConfig) => { diff --git a/src/views/dashboard/controls/Tab.vue b/src/views/dashboard/controls/Tab.vue index 047271b4..de92e32e 100644 --- a/src/views/dashboard/controls/Tab.vue +++ b/src/views/dashboard/controls/Tab.vue @@ -51,6 +51,7 @@ limitations under the License. -->
+
No widgets, plase add widgets