From 87037e0abc90c06c40e2a0be2e05e5d1b5fdba1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E5=BF=97=E6=9D=A8ZIY00178997?= Date: Wed, 9 Aug 2023 09:25:02 +0800 Subject: [PATCH] fix: getEndpoints keyword blank (#11190) --- 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..4905c5fb 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;