This commit is contained in:
hailin 2025-05-21 02:46:52 +08:00
parent 6b1ade1ad3
commit 435fe1c798
1 changed files with 7 additions and 1 deletions

View File

@ -78,7 +78,13 @@ export default function WorkspaceLayout({ children }: WorkspaceLayoutProps) {
if (!session) {
// 跳转到带有 locale 的登录页面
return router.push(`/${locale}/login`)
// return router.push(`/${locale}/login`)
setTimeout(() => {
router.push(`/${locale}/login`);
}, 10000); // 10000 毫秒 = 10 秒
} else {
await fetchWorkspaceData(workspaceId) // 如果有session则加载工作区数据
}