Browse Source

问题修改

mfmf 3 years ago
parent
commit
7c3e2ea4f5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/js/utils.js

+ 2 - 0
src/js/utils.js

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