Commit 486f224c0f4efee6c5161e0227d0be119dfda6f5
1 parent
468cd097
1
Showing
1 changed file
with
1 additions
and
1 deletions
lvdao-miniapp/utils/request.js
| @@ -11,7 +11,7 @@ const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => { | @@ -11,7 +11,7 @@ const sendRequest = (url, method = 'GET', data = {}, baseUrl,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 | } |
| 17 | var bases = '' | 17 | var bases = '' |