Commit 6cb1e7abdf234f439c9d9d19ef97bb8587746e94
Merge branch 'master' of http://39.98.150.180/webapp/GreenwayWeb
Showing
1 changed file
with
1 additions
and
1 deletions
lvdao-miniapp/utils/request.js
| @@ -10,7 +10,7 @@ const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => { | @@ -10,7 +10,7 @@ const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => { | ||
| 10 | if (method == 'POST' && !contentType) { | 10 | if (method == 'POST' && !contentType) { |
| 11 | types = 'application/x-www-form-urlencoded' | 11 | types = 'application/x-www-form-urlencoded' |
| 12 | } else if (method == 'POST' && contentType) { | 12 | } else if (method == 'POST' && contentType) { |
| 13 | - types = contentType | 13 | + types = contentType |
| 14 | } else { | 14 | } else { |
| 15 | types = 'application/json'; | 15 | types = 'application/json'; |
| 16 | } | 16 | } |