fix errors (#124)

This commit is contained in:
Fine0830
2022-07-20 19:42:41 +08:00
committed by GitHub
parent bec86e80fd
commit 017f5bf709
3 changed files with 16 additions and 3 deletions

View File

@@ -125,6 +125,9 @@ function fetchSelectors() {
async function getEndpoints(id?: string) {
const resp = await eventStore.getEndpoints(id);
if (!resp) {
return;
}
if (resp.errors) {
ElMessage.error(resp.errors);
return;
@@ -148,6 +151,9 @@ async function queryEvents() {
if (dashboardStore.entity === EntityType[3].value) {
instance = selectorStore.currentPod.id;
}
if (!selectorStore.currentService) {
return;
}
eventStore.setEventCondition({
// layer: dashboardStore.layerId,
paging: {