准备搜索索引...
搜索索引不可用
React Router API 参考
React Router API 参考
@react-router/dev
路由
prefix
函数 prefix
prefix
(
prefixPath
,
routes
)
:
RouteConfigEntry
[]
用于向一组路由添加路径前缀的辅助函数,无需引入父路由文件,用于
routes.ts
中。
参数
prefixPath
:
string
routes
:
RouteConfigEntry
[]
返回值
RouteConfigEntry
[]
设置
成员可见性
受保护的
继承的
外部的
主题
操作系统
浅色
深色
React Router API 参考
加载中...
用于向一组路由添加路径前缀的辅助函数,无需引入父路由文件,用于
routes.ts
中。