Skip to content

Commit c3b0c65

Browse files
committed
fix: keep the undefined data for AV.request
cocos2d-x-lite throws if we send {}
1 parent 2b4afe7 commit c3b0c65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/request.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const request = ({
116116
method,
117117
path,
118118
query,
119-
data = {},
119+
data,
120120
authOptions,
121121
signKey = true,
122122
}) => {
@@ -160,7 +160,7 @@ const _request = (
160160
className,
161161
objectId,
162162
method,
163-
data = {},
163+
data,
164164
authOptions,
165165
query
166166
) => {

0 commit comments

Comments
 (0)