fix: query logs with the specific service ID (#165)

This commit is contained in:
Fine0830 2022-09-30 10:25:05 +08:00 committed by GitHub
parent 5bb58a00cd
commit 0f4319499a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,22 +193,22 @@ async function init() {
state.endpoint = { value: "0", label: "All" };
}
function fetchSelectors() {
async function fetchSelectors() {
if (dashboardStore.entity === EntityType[1].value) {
getServices();
await getServices();
return;
}
if (dashboardStore.entity === EntityType[2].value) {
getInstances();
await getInstances();
return;
}
if (dashboardStore.entity === EntityType[3].value) {
getEndpoints();
await getEndpoints();
return;
}
if (dashboardStore.entity === EntityType[0].value) {
getInstances();
getEndpoints();
await getInstances();
await getEndpoints();
}
}