This commit is contained in:
hailin 2025-04-18 18:40:10 +08:00
parent 958140feaa
commit c8426f4559
1 changed files with 1 additions and 0 deletions

View File

@ -28,6 +28,7 @@ interface WorkspaceLayoutProps {
export default function WorkspaceLayout({ children }: WorkspaceLayoutProps) {
const router = useRouter()
const pathname = usePathname() // 获取当前路径
// 提取当前路径中的 locale 部分
const locale = pathname.split("/")[1] || "en"