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;