update code level
This commit is contained in:
@@ -369,7 +369,7 @@ function appendAlbums(albums) {
|
||||
let dataSrc = '';
|
||||
|
||||
if (album.cover_image_id) {
|
||||
dataSrc = `/api/image/${album.cover_image_id}`;
|
||||
dataSrc = `${API_BASE}/image/${album.cover_image_id}`;
|
||||
coverImageUrl = '/assets/placeholder.svg'; // 初始使用占位图
|
||||
}
|
||||
|
||||
@@ -585,7 +585,7 @@ function displayAlbums(albums) {
|
||||
let dataSrc = '';
|
||||
|
||||
if (album.cover_image_id) {
|
||||
dataSrc = `/api/image/${album.cover_image_id}`;
|
||||
dataSrc = `${API_BASE}/image/${album.cover_image_id}`;
|
||||
coverImageUrl = '/assets/placeholder.svg'; // 初始使用占位图
|
||||
}
|
||||
|
||||
@@ -1495,12 +1495,21 @@ async function filterByPerson(personName) {
|
||||
}
|
||||
} catch (e) { /* 回退 */ }
|
||||
}
|
||||
// 回退到全站搜索,也要保存过滤结果
|
||||
// 回退到全站搜索
|
||||
filteredAlbums = await performServerSearchWithResult(personName);
|
||||
} catch (error) {
|
||||
console.error('人物筛选失败:', error);
|
||||
filteredAlbums = await performServerSearchWithResult(personName);
|
||||
}
|
||||
|
||||
// 无论回退搜索是否找到结果,都要渲染页面(移除骨架屏)
|
||||
if (filteredAlbums !== null) {
|
||||
currentDisplayPage = 1;
|
||||
hasMoreAlbums = filteredAlbums.length > albumsPerPage;
|
||||
displayAlbums(filteredAlbums);
|
||||
updateStats(filteredAlbums);
|
||||
initLazyLoading();
|
||||
}
|
||||
}
|
||||
|
||||
// 显示筛选状态
|
||||
|
||||
Reference in New Issue
Block a user