瀏覽代碼

Merge branch 'xyLog220509' into test

mfmf 3 年之前
父節點
當前提交
f0869c74fc
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/js/utils.js

+ 2 - 0
src/js/utils.js

@@ -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,
     },
     },
   });
   });