fix bug
This commit is contained in:
parent
79cb836483
commit
bb926dd301
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue