From 9531e74f5602dfa27af9367fbe149741ab1d686d Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Mon, 17 Jan 2022 17:02:14 +0800 Subject: [PATCH] feat: update dashboard tool --- src/store/modules/selectors.ts | 4 +- .../dashboard/configuration/ConfigEdit.vue | 15 +++- src/views/dashboard/data.ts | 2 + src/views/dashboard/panel/Tool.vue | 77 +++++++++---------- 4 files changed, 54 insertions(+), 44 deletions(-) diff --git a/src/store/modules/selectors.ts b/src/store/modules/selectors.ts index c64a43fa..44a3ec64 100644 --- a/src/store/modules/selectors.ts +++ b/src/store/modules/selectors.ts @@ -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 : ""; } diff --git a/src/views/dashboard/configuration/ConfigEdit.vue b/src/views/dashboard/configuration/ConfigEdit.vue index 3cf1f4fb..9cb0cd54 100644 --- a/src/views/dashboard/configuration/ConfigEdit.vue +++ b/src/views/dashboard/configuration/ConfigEdit.vue @@ -64,7 +64,7 @@ limitations under the License. -->