|
@@ -51,7 +51,7 @@ const post=(url,data)=>{
|
|
|
|
|
|
return axios({
|
|
|
method:'post',
|
|
|
- url:url,
|
|
|
+ url:host+url,
|
|
|
data
|
|
|
});
|
|
|
};
|
|
@@ -62,7 +62,7 @@ const json=(url,data)=>{
|
|
|
return new Promise((resolve,reject)=>{
|
|
|
$.ajax({
|
|
|
method:'post',
|
|
|
- url:url,
|
|
|
+ url:host+url,
|
|
|
data:JSON.stringify(data),
|
|
|
contentType:"application/json; charset=UTF-8",
|
|
|
success:function(res){
|
|
@@ -76,7 +76,7 @@ const json=(url,data)=>{
|
|
|
};
|
|
|
|
|
|
const get=(url)=>{
|
|
|
- return axios.get(url).then(data=>data.data);
|
|
|
+ return axios.get(host+url).then(data=>data.data);
|
|
|
};
|
|
|
|
|
|
module.exports={
|