Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit c372b9a

Browse files
committed
Data instead of body for axios
1 parent bd76b40 commit c372b9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/middleware/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const callApi = function(callAPI) {
2121
}
2222

2323
if (body) {
24-
config.body = JSON.stringify(body)
24+
config.data = JSON.stringify(body)
2525
}
2626

2727
return axios(config)

0 commit comments

Comments
 (0)