From b1bd7307bb85ba8ac4d0f2df627b52c3ec5fcc72 Mon Sep 17 00:00:00 2001 From: futchitwo <74236683+futchitwo@users.noreply.github.com> Date: Sun, 5 Dec 2021 03:01:35 +0900 Subject: [PATCH] =?UTF-8?q?Fix(client):=20API=E3=82=B3=E3=83=B3=E3=82=BD?= =?UTF-8?q?=E3=83=BC=E3=83=AB=E3=81=A7=20with=20credential=20=E3=81=8C?= =?UTF-8?q?=E3=82=AA=E3=83=95=E3=81=A0=E3=81=A8i=E3=81=8C=E4=BB=98?= =?UTF-8?q?=E4=B8=8E=E3=81=95=E3=82=8C=E3=81=AA=E3=81=84=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=20(#8038)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/client/src/pages/api-console.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/client/src/pages/api-console.vue b/packages/client/src/pages/api-console.vue index 594778e53..16018be71 100644 --- a/packages/client/src/pages/api-console.vue +++ b/packages/client/src/pages/api-console.vue @@ -66,7 +66,8 @@ export default defineComponent({ methods: { send() { this.sending = true; - os.api(this.endpoint, JSON5.parse(this.body)).then(res => { + const body = JSON5.parse(this.body); + os.api(this.endpoint, body, body.i || this.withCredential ? undefined : null).then(res => { this.sending = false; this.res = JSON5.stringify(res, null, 2); }, err => {