This is an automated email from the ASF dual-hosted git repository.

qiuxiafan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-booster-ui.git


The following commit(s) were added to refs/heads/main by this push:
     new 8c1ddb10 fix: getEndpoints keyword blank (#310)
8c1ddb10 is described below

commit 8c1ddb109c07f93b00184066fd2df3ce6407c90e
Author: SimonHu1993 <[email protected]>
AuthorDate: Wed Aug 9 09:56:32 2023 +0800

    fix: getEndpoints keyword blank (#310)
---
 src/store/modules/event.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/store/modules/event.ts b/src/store/modules/event.ts
index e1948cce..ac89f648 100644
--- a/src/store/modules/event.ts
+++ b/src/store/modules/event.ts
@@ -57,7 +57,7 @@ export const eventStore = defineStore({
       this.instances = [{ value: "", label: "All" }, ...res.data.data.pods] || 
[{ value: "", label: "All" }];
       return res.data;
     },
-    async getEndpoints() {
+    async getEndpoints(keyword?: string) {
       const serviceId = useSelectorStore().currentService ? 
useSelectorStore().currentService.id : "";
       if (!serviceId) {
         return;
@@ -65,7 +65,7 @@ export const eventStore = defineStore({
       const res: AxiosResponse = await graphql.query("queryEndpoints").params({
         serviceId,
         duration: useAppStoreWithOut().durationTime,
-        keyword: "",
+        keyword: keyword || "",
       });
       if (res.data.errors) {
         return res.data;

Reply via email to