Skip to content

Commit

Permalink
Merge pull request #10 from shashfrankenstien/master
Browse files Browse the repository at this point in the history
Include blank data object in ajax.js defaultOptions
  • Loading branch information
daweilv authored Mar 27, 2022
2 parents bf3816d + 21e034f commit 3ebb960
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export default function(_options) {
async: true,
success: null,
failed: null,
data: {},
'Content-Type': 'application/json; charset=utf-8',
};
const options = Object.assign(defaultOptions, _options);
Expand Down

1 comment on commit 3ebb960

@MoonCheung
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

还没发布npm吗?我安装之后看到这个源码还没改变
image

Please sign in to comment.