diff --git a/lvdao-miniapp/utils/request.js b/lvdao-miniapp/utils/request.js index 7215b99..9d0f4a7 100644 --- a/lvdao-miniapp/utils/request.js +++ b/lvdao-miniapp/utils/request.js @@ -10,7 +10,7 @@ const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => { if (method == 'POST' && !contentType) { types = 'application/x-www-form-urlencoded' } else if (method == 'POST' && contentType) { - types = contentType + types = contentType } else { types = 'application/json'; }