Commit 181ff22e3e08616a1e6598512fa583df05599984
1 parent
6cdc10e3
1
Showing
1 changed file
with
2 additions
and
2 deletions
lvdao-miniapp/utils/request.js
| ... | ... | @@ -11,10 +11,10 @@ const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => { |
| 11 | 11 | types = 'application/x-www-form-urlencoded' |
| 12 | 12 | } else if (method == 'POST' && contentType) { |
| 13 | 13 | types = contentType |
| 14 | - } else { | |
| 14 | + } else { | |
| 15 | 15 | types = 'application/json'; |
| 16 | 16 | } |
| 17 | - var bases = '' | |
| 17 | + var bases = '' | |
| 18 | 18 | if(baseUrl == 1){ |
| 19 | 19 | // bases = 'http://128.10.249.22:9003' + url; |
| 20 | 20 | // bases = 'http://172.16.61.123/cdwlMall/admin-server' + url; | ... | ... |