Skip to content

Commit

Permalink
fix(bug): modify payload for post and put method
Browse files Browse the repository at this point in the history
  • Loading branch information
zack9433 committed Oct 24, 2016
1 parent 6d77138 commit d21f8ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/component/restful.provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class RestProvider {
}
};
if (data) {
setting.data.jsonData = JSON.stringify(data);
setting.data = Object.assign({}, setting.data, data);
}
return Upload.upload(Object.assign(setting, options));
}
Expand All @@ -53,7 +53,7 @@ class RestProvider {
}
};
if (data) {
setting.data.jsonData = JSON.stringify(data);
setting.data = Object.assign({}, setting.data, data);
}
return Upload.upload(Object.assign(setting, options));
}
Expand Down

0 comments on commit d21f8ce

Please sign in to comment.