perf: 优化日志保留与分页查询
- 降低普通只读请求的日志写入并保留敏感 GET 审计 - 增加数据库分批清理、时间索引和文件滚动容量上限 - 增加近 30 天筛选、稳定倒序和分页大小限制
This commit is contained in:
@@ -37,7 +37,7 @@ const props = defineProps({
|
||||
},
|
||||
});
|
||||
|
||||
const emit = defineEmits(['search', 'buttonClick']);
|
||||
const emit = defineEmits(['search', 'buttonClick', 'reset']);
|
||||
|
||||
const searchValue = ref('');
|
||||
|
||||
@@ -70,6 +70,7 @@ const handleSearch = () => {
|
||||
|
||||
const handleReset = () => {
|
||||
searchValue.value = '';
|
||||
emit('reset');
|
||||
emit('search', '');
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user