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" }; state.endpoint = { value: "0", label: "All" };
} }
function fetchSelectors() { async function fetchSelectors() {
if (dashboardStore.entity === EntityType[1].value) { if (dashboardStore.entity === EntityType[1].value) {
getServices(); await getServices();
return; return;
} }
if (dashboardStore.entity === EntityType[2].value) { if (dashboardStore.entity === EntityType[2].value) {
getInstances(); await getInstances();
return; return;
} }
if (dashboardStore.entity === EntityType[3].value) { if (dashboardStore.entity === EntityType[3].value) {
getEndpoints(); await getEndpoints();
return; return;
} }
if (dashboardStore.entity === EntityType[0].value) { if (dashboardStore.entity === EntityType[0].value) {
getInstances(); await getInstances();
getEndpoints(); await getEndpoints();
} }
} }