mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-14 20:01:28 +00:00
feat: set configs
This commit is contained in:
@@ -57,6 +57,8 @@ export const dashboardStore = defineStore({
|
||||
...NewControl,
|
||||
i: String(this.layout.length),
|
||||
type,
|
||||
metricTypes: [""],
|
||||
metrics: [""],
|
||||
};
|
||||
if (type === "Tab") {
|
||||
newWidget.h = 24;
|
||||
|
@@ -62,7 +62,6 @@ export const selectorStore = defineStore({
|
||||
|
||||
if (!res.data.errors) {
|
||||
this.services = res.data.data.services || [];
|
||||
this.currentService = this.services.length ? this.services[0] : null;
|
||||
}
|
||||
return res.data;
|
||||
},
|
||||
@@ -79,7 +78,6 @@ export const selectorStore = defineStore({
|
||||
});
|
||||
if (!res.data.errors) {
|
||||
this.pods = res.data.data.pods || [];
|
||||
this.currentPod = this.pods.length ? this.pods[0] : null;
|
||||
}
|
||||
return res.data;
|
||||
},
|
||||
@@ -104,7 +102,6 @@ export const selectorStore = defineStore({
|
||||
});
|
||||
if (!res.data.errors) {
|
||||
this.pods = res.data.data.pods || [];
|
||||
this.currentPod = this.pods.length ? this.pods[0] : null;
|
||||
}
|
||||
return res.data;
|
||||
},
|
||||
|
Reference in New Issue
Block a user