1
0
Fork 1
mirror of https://example.com synced 2024-11-28 03:46:39 +09:00

Fix(client): APIコンソールで with credential がオフだとiが付与されないように (#8038)

This commit is contained in:
futchitwo 2021-12-05 03:01:35 +09:00 committed by GitHub
parent 8a3f860213
commit b1bd7307bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 => {