mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
fix(projects): 修复项目配置拷贝功能
This commit is contained in:
2
src/typings/common/route.d.ts
vendored
2
src/typings/common/route.d.ts
vendored
@ -125,7 +125,7 @@ declare namespace AuthRoute {
|
||||
type SingleRouteParentPath = KeyToPath<SingleRouteParentKey>;
|
||||
|
||||
/** 路由key转换路由path */
|
||||
type KeyToPath<Key extends RouteKey> = Key extends `${infer Left}_${infer Right}`
|
||||
type KeyToPath<Key extends string> = Key extends `${infer Left}_${infer Right}`
|
||||
? KeyToPath<`${Left}/${Right}`>
|
||||
: `/${Key}`;
|
||||
|
||||
|
Reference in New Issue
Block a user