mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-25 02:09:05 +01:00
Fix(client): APIコンソールで with credential がオフだとiが付与されないように (#8038)
This commit is contained in:
parent
118f61608d
commit
9c646e5648
@ -66,7 +66,8 @@ export default defineComponent({
|
|||||||
methods: {
|
methods: {
|
||||||
send() {
|
send() {
|
||||||
this.sending = true;
|
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.sending = false;
|
||||||
this.res = JSON5.stringify(res, null, 2);
|
this.res = JSON5.stringify(res, null, 2);
|
||||||
}, err => {
|
}, err => {
|
||||||
|
Loading…
Reference in New Issue
Block a user