From d21f8ce97acf15b9d14b9bda8ee28063725a7efd Mon Sep 17 00:00:00 2001 From: Zack Yang Date: Mon, 24 Oct 2016 14:51:43 +0800 Subject: [PATCH] fix(bug): modify payload for post and put method --- app/component/restful.provider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/component/restful.provider.js b/app/component/restful.provider.js index 920e8e9..dc71221 100644 --- a/app/component/restful.provider.js +++ b/app/component/restful.provider.js @@ -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)); } @@ -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)); }