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

调试模式关闭加密

上级 da864602
...@@ -34,7 +34,7 @@ export default function prepareShow(postData = {}, content = '', otherParams = { ...@@ -34,7 +34,7 @@ export default function prepareShow(postData = {}, content = '', otherParams = {
if (agg?.unifiedServicePatternModel?.id && (test || getUserInfo().stuNo === 'admin')) { if (agg?.unifiedServicePatternModel?.id && (test || getUserInfo().stuNo === 'admin')) {
const SystemConfig = window.specialImportantSystemConfig || {}; const SystemConfig = window.specialImportantSystemConfig || {};
console.log('%c' + `${SystemConfig?.gateWayPort}/onestop/#/admin/processServices/modelConfig/templateDetail/designById?id=${agg.unifiedServicePatternModel.id}&token=${getToken()}`, 'color: green;background: white;font-size: 14px'); console.log('%c' + `${SystemConfig?.gateWayPort}/onestop/#/admin/processServices/modelConfig/templateDetail/designById?id=${agg.unifiedServicePatternModel.id}&token=${getToken()}`, 'color: green;background: white;font-size: 14px');
console.log('%c' + `${SystemConfig?.gateWayPort}/wisdomSchool/#/designFormByUrl?id=${agg.unifiedServicePatternModel.id}&token=${getToken()}`, 'color: green;background: white;font-size: 14px'); console.log('%c' + `${SystemConfig?.gateWayPort}/wisdomYsgz/#/designFormByUrl?id=${agg.unifiedServicePatternModel.id}&token=${getToken()}`, 'color: green;background: white;font-size: 14px');
} }
let data = agg?.unifiedServicePatternModel?.content || content; let data = agg?.unifiedServicePatternModel?.content || content;
let g = !!data && isJSON(data) && JSON.parse(data)?.templateWillMount; let g = !!data && isJSON(data) && JSON.parse(data)?.templateWillMount;
......
...@@ -145,6 +145,12 @@ const requestA = (url, data, options = {}) => { ...@@ -145,6 +145,12 @@ const requestA = (url, data, options = {}) => {
}; };
export async function request(url, data, options = {}) { export async function request(url, data, options = {}) {
if (localStorage.getItem('errDetail') === '1') { // 调试模式关闭加密
window.CONFIG.IS_SAFE = false;
window.CONFIG.IS_BINARY = false;
window.CONFIG.ALLBIN = false;
data.errDetail = true; // 欢哥 2023年3月27日 说的 加了这个参数就能开启调试模式 输出日志
}
let cacheData = await getCacheData(url, data); // 读接口缓存 let cacheData = await getCacheData(url, data); // 读接口缓存
if(cacheData){ if(cacheData){
return cacheData; return cacheData;
......
...@@ -86,11 +86,11 @@ function EditDrawer(props) { ...@@ -86,11 +86,11 @@ function EditDrawer(props) {
localStorage.setItem('edit-low-code-local', JSON.stringify(lowCodeEdit)); localStorage.setItem('edit-low-code-local', JSON.stringify(lowCodeEdit));
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
window.open( window.open(
'http://scjoyedu.eicp.net:51352/wisdomSchool/#/quanPingBianji?id=' + lowCodeEdit.TEMPLATE, 'http://scjoyedu.eicp.net:51352/wisdomYsgz/#/quanPingBianji?id=' + lowCodeEdit.TEMPLATE,
); );
} }
window.open( window.open(
window.location.origin + '/wisdomSchool/#/quanPingBianji?id=' + lowCodeEdit.TEMPLATE, window.location.origin + '/wisdomYsgz/#/quanPingBianji?id=' + lowCodeEdit.TEMPLATE,
); );
}; };
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论