update code level

This commit is contained in:
lychang
2026-07-20 23:46:39 +08:00
parent 84409207e2
commit 56dd82fb63
6 changed files with 121 additions and 342 deletions

View File

@@ -1473,7 +1473,8 @@ async function filterByPerson(personName) {
showSkeleton(6);
const response = await fetch(`${API_BASE}/people/search?q=${encodeURIComponent(personName)}`);
if (!response.ok) throw new Error('搜索失败');
const persons = await response.json();
const personData = await response.json();
const persons = personData.persons || personData;
if (persons && persons.length > 0) {
try {