This commit is contained in:
syuilo 2021-05-31 11:05:37 +09:00
parent 561c0e6771
commit bb9fe8bc14

View file

@ -60,7 +60,7 @@ export const api = ((endpoint: string, data: Record<string, any> = {}, token?: s
if (res.status === 200) { if (res.status === 200) {
resolve(body); resolve(body);
if (debug) { if (debug) {
log!.res = markRaw(body); log!.res = markRaw(JSON.parse(JSON.stringify(body)));
log!.state = 'success'; log!.state = 'success';
} }
} else if (res.status === 204) { } else if (res.status === 204) {