diff --git a/Client/src/components/PhotoWallPage.tsx b/Client/src/components/PhotoWallPage.tsx index c14d40e..5cad78b 100644 --- a/Client/src/components/PhotoWallPage.tsx +++ b/Client/src/components/PhotoWallPage.tsx @@ -229,7 +229,9 @@ export function PhotoWallPage({ onExit, token }: PhotoWallPageProps) { const t = setTimeout(() => { try { const decorations = els.filter((e) => e.type !== 'photo') - const photoLayout: Record = {} + // 从已知排版起步而非清空:未加载完/取图失败的照片其排版得以保留, + // 已加载或移动过的照片在下面覆盖各自的 key(删除时 removeEl 已从 layoutRef 删键)。 + const photoLayout: Record = { ...layoutRef.current } for (const e of els) { if (e.type === 'photo' && e.photoId) { photoLayout[e.photoId] = {