|
@@ -33,7 +33,7 @@ var Http = {
|
|
|
},
|
|
|
type: option.type,
|
|
|
dataType: "json",
|
|
|
- // headers: { 'X-Token': REV_TOKEN_ENV },
|
|
|
+ headers: { 'X-Token': REV_TOKEN_ENV },
|
|
|
async:false,
|
|
|
contentType: option.json ? 'application/json;charset=UTF-8' : 'application/x-www-form-urlencoded',
|
|
|
beforeSend:function () {
|
|
@@ -52,7 +52,7 @@ var Http = {
|
|
|
def.resolve(res);
|
|
|
}
|
|
|
}, function(error) {
|
|
|
- console.log('网络请求超时,请重试~')
|
|
|
+ console.log('网络请求超时,请重试~');
|
|
|
def.reject(error);
|
|
|
});
|
|
|
return def;
|