mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-15 12:49:17 +00:00
update selector for events (#26)
This commit is contained in:
@@ -38,7 +38,7 @@ export const eventStore = defineStore({
|
||||
loading: false,
|
||||
events: [],
|
||||
total: 0,
|
||||
services: [{ value: "", label: "" }],
|
||||
services: [{ value: "", label: "All" }],
|
||||
instances: [{ value: "", label: "All" }],
|
||||
endpoints: [{ value: "", label: "All" }],
|
||||
condition: {
|
||||
@@ -51,6 +51,10 @@ export const eventStore = defineStore({
|
||||
this.condition = { ...this.condition, ...data };
|
||||
},
|
||||
async getServices(layer: string) {
|
||||
if (!layer) {
|
||||
this.services = [{ value: "", label: "All" }];
|
||||
return new Promise((resolve) => resolve([]));
|
||||
}
|
||||
const res: AxiosResponse = await graphql.query("queryServices").params({
|
||||
layer,
|
||||
});
|
||||
|
Reference in New Issue
Block a user