fix: 修复画布列表切换时页面不自动加载的问题

This commit is contained in:
Your Name 2026-02-02 13:18:46 +08:00
parent 5f88eb44b3
commit 0369bc361d

View File

@ -64,8 +64,9 @@ export function CanvasFileList({ open, onOpenChange, currentId }: CanvasFileList
onOpenChange(false); onOpenChange(false);
return; return;
} }
router.push(`/canvas/${id}`);
onOpenChange(false); onOpenChange(false);
// 使用完整的 URL 导航确保页面重新加载
window.location.href = `/canvas/${id}`;
}; };
// 删除画布 // 删除画布