From 8c1ddb109c07f93b00184066fd2df3ce6407c90e Mon Sep 17 00:00:00 2001 From: SimonHu1993 <877101804@qq.com> Date: Wed, 9 Aug 2023 09:56:32 +0800 Subject: [PATCH] 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;