Commit b12a2996 by 梁建民

css

parent 7351b98f
Showing with 9 additions and 9 deletions
......@@ -23,19 +23,19 @@
if ((navigator.userAgent.indexOf('MSIE') >= 0) && (navigator.userAgent.indexOf('Opera') < 0)) {
dataTypeXpx = "jsonp";
}
// if(isheader){
$.ajaxSetup({
headers: {
Authorization: 'Bearer ' + Util.getCookie('token')
},
});
// };
if (isheader) {
$.ajaxSetup({
headers: {
Authorization: 'Bearer ' + Util.getCookie('token')
},
});
}
$.ajax({
type: type,
url: url,
data: params,
dataType: 'json',
dataType: dataTypeXpx,
xhrFields: {
withCredentials: true
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment