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

errDetail = 1 就不加密

上级 b3266dbc
...@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论