diff --git a/src/api/web-api-client.ts b/src/api/web-api-client.ts index d775f095..3316e4a4 100644 --- a/src/api/web-api-client.ts +++ b/src/api/web-api-client.ts @@ -79,7 +79,7 @@ export abstract class WebApiClient implements ApiHeaderDecorator { if (form) { let formData = this.convertToFormData(form); - reqData.data = formData; + reqData.data = formData.toString(); } let res = JsonUtil.parseLoseless((await Axios.request(reqData)).data); diff --git a/src/config/client-config-provider.ts b/src/config/client-config-provider.ts index 4b5c255c..95a3442d 100644 --- a/src/config/client-config-provider.ts +++ b/src/config/client-config-provider.ts @@ -17,7 +17,7 @@ export class DefaultClientConfigProvider implements ClientConfigProvider { private configuration: ClientConfig; constructor(config?: Partial) { - this.configuration = config ? Object.assign(config, DefaultConfiguration) : DefaultConfiguration; + this.configuration = config ? Object.assign(DefaultConfiguration, config) : DefaultConfiguration; } get Configuration() {