mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-14 20:01:28 +00:00
update selector for events (#26)
This commit is contained in:
@@ -124,9 +124,6 @@ getSelectors();
|
||||
|
||||
async function getSelectors() {
|
||||
await getLayers();
|
||||
if (!state.currentLayer) {
|
||||
return;
|
||||
}
|
||||
getServices();
|
||||
}
|
||||
|
||||
@@ -169,10 +166,13 @@ async function getLayers() {
|
||||
ElMessage.error(resp.errors);
|
||||
return;
|
||||
}
|
||||
state.currentLayer = resp.data.layers[0] || "";
|
||||
state.layers = resp.data.layers.map((d: string) => {
|
||||
return { label: d, value: d };
|
||||
});
|
||||
state.currentLayer = "";
|
||||
state.layers = [
|
||||
{ label: "All", value: "" },
|
||||
...resp.data.layers.map((d: string) => {
|
||||
return { label: d, value: d };
|
||||
}),
|
||||
];
|
||||
}
|
||||
|
||||
async function queryEvents() {
|
||||
|
Reference in New Issue
Block a user