From 34584a84bfddf7516217ecf1a254726221a20ab6 Mon Sep 17 00:00:00 2001 From: AceDataCloud Date: Mon, 23 Jan 2023 00:01:37 +0800 Subject: [PATCH] update create application --- src/operators/application/models.ts | 4 ++-- src/pages/service/Detail.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/operators/application/models.ts b/src/operators/application/models.ts index 1e228f61..dacb343f 100644 --- a/src/operators/application/models.ts +++ b/src/operators/application/models.ts @@ -2,8 +2,8 @@ import { IService } from '../service'; export interface IApplication { id?: string; - service: IService; - service_id: string; + service?: IService; + service_id?: string; api_key?: string; user_id?: string; remaining_count?: number; diff --git a/src/pages/service/Detail.vue b/src/pages/service/Detail.vue index 7649acbe..56fe63eb 100644 --- a/src/pages/service/Detail.vue +++ b/src/pages/service/Detail.vue @@ -107,7 +107,7 @@ export default defineComponent({ onApply() { applicationOperator .create({ - service: this.id + service_id: this.id }) .then(({ data: data }: { data: IApplicationDetailResponse }) => { this.application = data;