diff --git a/src/utils/request.js b/src/utils/request.js index a660650..7a3d2c8 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -22,7 +22,7 @@ export default async function request(url, options) { checkStatus(response); - const data = await response.json(); + const data = response.status === 204 ? null : await response.json(); const ret = { data,