feat: update dashboard tool

This commit is contained in:
Qiuxia Fan
2022-01-17 17:02:14 +08:00
parent dd703426f7
commit 9531e74f56
4 changed files with 54 additions and 44 deletions

View File

@@ -77,7 +77,7 @@ export const selectorStore = defineStore({
duration: this.durationTime,
});
if (!res.data.errors) {
this.instances = res.data.data.instances || [];
this.instances = res.data.data.pods || [];
this.pods = this.instances;
this.currentPod = this.pods.length ? this.pods[0].value : "";
}
@@ -96,7 +96,7 @@ export const selectorStore = defineStore({
keyword: params.keyword,
});
if (!res.data.errors) {
this.endpoints = res.data.data.endpoints || [];
this.endpoints = res.data.data.pods || [];
this.pods = this.endpoints;
this.currentPod = this.pods.length ? this.pods[0].value : "";
}