feat: 批量 unregister 功能 + 性能优化
功能: - LibraryView 添加批量 unregister 按钮(勾选多个已注册文件后显示) - 添加确认对话框,支持批量取消注册 - 添加中英日三语翻译 性能优化: - search_agents API timeout 提升到 90s(避免前端超时) - thumbnail 并发数从 32 降到 10(减少服务器压力) 修复: - PeopleView 添加 group_uuid 字段映射 - LibraryView 排序优化(scanning/preparing 优先)
This commit is contained in:
@@ -2028,11 +2028,15 @@ async function loadClusterResults() {
|
||||
}
|
||||
const groups = results?.face_groups || results?.clusters || []
|
||||
const frames = results?.frames || []
|
||||
// 統一 group_id → cluster_id
|
||||
// 統一 group_id → cluster_id, 並添加 group_uuid
|
||||
for (const g of groups) {
|
||||
if (g.group_id !== undefined && g.cluster_id === undefined) {
|
||||
g.cluster_id = g.group_id
|
||||
}
|
||||
// 添加 group_uuid 字段供前端使用
|
||||
if (g.group_uuid === undefined) {
|
||||
g.group_uuid = `group_${g.cluster_id || g.group_id}`
|
||||
}
|
||||
}
|
||||
// Build cluster_id → faces[] mapping from frames
|
||||
const clusterFacesMap: Record<string, any[]> = {}
|
||||
|
||||
Reference in New Issue
Block a user