summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfutchitwo <74236683+futchitwo@users.noreply.github.com>2021-12-05 03:01:35 +0900
committerGitHub <noreply@github.com>2021-12-05 03:01:35 +0900
commitb1bd7307bb85ba8ac4d0f2df627b52c3ec5fcc72 (patch)
tree3409dd0c7280240c4cce19d4314516571f0fc023
parentfix(client): fix range slider rendering (diff)
downloadsharkey-b1bd7307bb85ba8ac4d0f2df627b52c3ec5fcc72.tar.gz
sharkey-b1bd7307bb85ba8ac4d0f2df627b52c3ec5fcc72.tar.bz2
sharkey-b1bd7307bb85ba8ac4d0f2df627b52c3ec5fcc72.zip
Fix(client): APIコンソールで with credential がオフだとiが付与されないように (#8038)
-rw-r--r--packages/client/src/pages/api-console.vue3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/client/src/pages/api-console.vue b/packages/client/src/pages/api-console.vue
index 594778e539..16018be712 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 => {