From af4152cf2f323ac2dcba9552f7d90ed21bafa0a9 Mon Sep 17 00:00:00 2001 From: Fine Date: Tue, 8 Aug 2023 17:38:47 +0800 Subject: [PATCH] fix: keywords --- 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..56b85387 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, }); if (res.data.errors) { return res.data;