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,10 +11,10 @@ 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 = '' |
| 18 | if(baseUrl == 1){ | 18 | if(baseUrl == 1){ |
| 19 | // bases = 'http://128.10.249.22:9003' + url; | 19 | // bases = 'http://128.10.249.22:9003' + url; |
| 20 | // bases = 'http://172.16.61.123/cdwlMall/admin-server' + url; | 20 | // bases = 'http://172.16.61.123/cdwlMall/admin-server' + url; |