|
@@ -140,7 +140,7 @@ export function get(url, params = {}) {
|
|
|
if(process.env.NODE_ENV == "development"){
|
|
|
var getUrl = "http://" + window.location.host + "" + url
|
|
|
}else{
|
|
|
- var getUrl = "https://" + window.location.host + url
|
|
|
+ var getUrl = "http://" + window.location.host + url
|
|
|
}
|
|
|
axios.get(getUrl, {params:params})
|
|
|
.then(response => {
|
|
@@ -166,7 +166,7 @@ export function post(url, data = {},params,headers) {
|
|
|
if(process.env.NODE_ENV == "development"){
|
|
|
var postUrl = "http://" + window.location.host + url
|
|
|
}else{
|
|
|
- var postUrl = "https://" + window.location.host + url
|
|
|
+ var postUrl = "http://" + window.location.host + url
|
|
|
}
|
|
|
axios.post(postUrl, data = {},{
|
|
|
params:params,
|