This commit is contained in:
syuilo 2021-05-31 11:05:37 +09:00
parent 79cb836483
commit bb926dd301
1 changed files with 1 additions and 1 deletions

View File

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