Skip to content

Commit

Permalink
fix(module/request): #91 Empty data when sending request
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodong2008 committed Jan 23, 2024
1 parent daa8f9a commit b123cb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/request/xhr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class FastjsXhrRequest extends FastjsRequest {

send(method: "GET" | "HEAD" | "OPTIONS", data?: data, referer?: string): this;
send(method: "POST" | "PUT" | "DELETE" | "PATCH", data?: string | data, referer?: string): this;
send(method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS", data: data | string = {}, referer: string = "FastjsRequest.send()"): this {
send(method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS", data?: data | string, referer: string = "FastjsRequest.send()"): this {
const hooks = this.config.hooks

if (__DEV__) {
Expand Down

0 comments on commit b123cb3

Please sign in to comment.