这两个是 App Router 的高级功能,用于复杂的 UI 布局。它们共享一个文件夹约定语法。
并行路由 (@folder) — 在一个布局中渲染多个页面
并行路由让单个布局能够同时渲染多个独立的路由"插槽",每个插槽都有自己的 loading/error 状态。您使用 @name 文件夹定义插槽:
text
app/
layout.tsx
@team/page.tsx → a slot
@analytics/page.tsx → another slot
tsx
() {
;
}
