浏览代码

问题修改

mfmf 3 年之前
父节点
当前提交
7c3e2ea4f5
共有 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', '');
     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,
     },
   });