新增 CLAUDE.md 文件以提供项目指导,添加 .claudeignore 文件以排除不必要的文件,更新 pom.xml 版本至 3.9.2,修复多个路径遍历和 SQL 注入漏洞,优化字典翻译切面逻辑,增强文件上传和下载的安全性,新增音频文件类型支持,改进动态数据源的安全校验。
This commit is contained in:
@@ -329,8 +329,10 @@ export function useListTable(tableProps: TableProps): [
|
||||
|
||||
// 发送请求之前调用的方法
|
||||
function beforeFetch(params) {
|
||||
// 判断是否已有排序参数(defSort 为数组时会转换为 defSortString)
|
||||
const hasSortParams = params.column || params.defSortString || params.order;
|
||||
// 默认以 createTime 降序排序
|
||||
return Object.assign({ column: 'createTime', order: 'desc' }, params);
|
||||
return Object.assign(hasSortParams ? {} : { column: 'createTime', order: 'desc' }, params);
|
||||
}
|
||||
|
||||
// 合并方法
|
||||
|
||||
@@ -14,17 +14,18 @@ export function printJS(configuration: Configuration) {
|
||||
}
|
||||
|
||||
/** 调用 printNB 打印 */
|
||||
export function printNb(domId) {
|
||||
export function printNb(domId, endCallback?) {
|
||||
if (domId) {
|
||||
localPrint(domId);
|
||||
localPrint(domId, endCallback);
|
||||
} else {
|
||||
window.print();
|
||||
endCallback && endCallback();
|
||||
}
|
||||
}
|
||||
|
||||
let closeBtn = true;
|
||||
|
||||
function localPrint(domId) {
|
||||
function localPrint(domId, endCallback) {
|
||||
if (typeof domId === 'string' && !domId.startsWith('#')) {
|
||||
domId = '#' + domId;
|
||||
}
|
||||
@@ -35,6 +36,7 @@ function localPrint(domId) {
|
||||
el: domId,
|
||||
endCallback() {
|
||||
closeBtn = true;
|
||||
endCallback && endCallback();
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user