提交 de407d97 authored 作者: 钟是志's avatar 钟是志

Merge remote-tracking branch 'origin/master'

...@@ -56,6 +56,7 @@ export function getHeaders(url = '') { ...@@ -56,6 +56,7 @@ export function getHeaders(url = '') {
}, },
}; };
if(getIsBei_Dian() && window.location.origin.indexOf('localhost') > -1){ if(getIsBei_Dian() && window.location.origin.indexOf('localhost') > -1){
// 北电科一站式必须加这个才能调得通
res.headers.env = 'test'; res.headers.env = 'test';
} }
// //
......
...@@ -47,7 +47,7 @@ function checkStatus(response) { ...@@ -47,7 +47,7 @@ function checkStatus(response) {
*/ */
export default async function request(url, options, config = { enableLoading: true }){ export default async function request(url, options, config = { enableLoading: true }){
if(window.CONFIG?.IS_SAFE && options.body){ if(window.CONFIG?.IS_SAFE && options.body && localStorage.getItem('errDetail') !== '1'){
let newData = await giveFilePostData(options.body, url); let newData = await giveFilePostData(options.body, url);
if (typeof newData === 'object' && newData.url && newData.datas) { if (typeof newData === 'object' && newData.url && newData.datas) {
options.body = newData.datas; options.body = newData.datas;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论