From e6d10dbc6a810f0cc4da3320cae8c0d18e39dbda Mon Sep 17 00:00:00 2001 From: AceDataCloud Date: Sat, 4 Mar 2023 00:23:46 +0800 Subject: [PATCH] fix filter application bug --- src/components/api/Usage.vue | 3 ++- src/operators/application/operator.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/api/Usage.vue b/src/components/api/Usage.vue index dcb029c1..2e5627b4 100644 --- a/src/components/api/Usage.vue +++ b/src/components/api/Usage.vue @@ -82,7 +82,8 @@ export default defineComponent({ getApplications() { applicationOperator .getAll({ - user_id: this.$store.getters.user?.id + user_id: this.$store.getters.user?.id, + api_id: this.api.id }) .then(({ data: data }: { data: IApplicationListResponse }) => { this.applications = data.items; diff --git a/src/operators/application/operator.ts b/src/operators/application/operator.ts index ac14bde5..e6cddfe6 100644 --- a/src/operators/application/operator.ts +++ b/src/operators/application/operator.ts @@ -7,6 +7,7 @@ export interface IApplicationQuery { offset?: number; limit?: number; type?: IApplicationType; + api_id?: string; } class ApplicationOperator {