Commit a78b9e2d728b69f4b8b7f82cf36a3fd400bf53f4

Authored by wesley88
1 parent b0a71bf1

1

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 }