|
@@ -295,6 +295,7 @@ const expJson = (url, data) => {
|
|
setCookie('behosDateEnd', '');
|
|
setCookie('behosDateEnd', '');
|
|
window.location.href = '../login.html';
|
|
window.location.href = '../login.html';
|
|
}
|
|
}
|
|
|
|
+ let isPlacefile = getCookie('isPlacefile') || 1;
|
|
let need = window.location.href.indexOf('localhost') != -1;
|
|
let need = window.location.href.indexOf('localhost') != -1;
|
|
return axios({
|
|
return axios({
|
|
method: 'post',
|
|
method: 'post',
|
|
@@ -303,6 +304,7 @@ const expJson = (url, data) => {
|
|
contentType: 'application/vnd.ms-excel',
|
|
contentType: 'application/vnd.ms-excel',
|
|
responseType: 'blob', //必须添加,否则会乱码
|
|
responseType: 'blob', //必须添加,否则会乱码
|
|
headers: {
|
|
headers: {
|
|
|
|
+ isPlacefile:isPlacefile,
|
|
Authorization: 'Bearer ' + token,
|
|
Authorization: 'Bearer ' + token,
|
|
},
|
|
},
|
|
});
|
|
});
|