update code level
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user