fix: response

This commit is contained in:
archer
2023-04-10 21:27:13 +08:00
parent 6a2b34cb92
commit aaa350a13e
3 changed files with 3 additions and 3 deletions

View File

@@ -49,6 +49,6 @@ export const jsonRes = <T = any>(
code,
statusText: '',
message: msg,
data: data || null
data: data !== undefined ? data : null
});
};