This commit is contained in:
parent
6b1ade1ad3
commit
435fe1c798
|
|
@ -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,则加载工作区数据
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue