diff --git a/src/typings/route.d.ts b/src/typings/route.d.ts index 4464d745d..0235dbe48 100644 --- a/src/typings/route.d.ts +++ b/src/typings/route.d.ts @@ -28,11 +28,11 @@ declare namespace AuthRoute { type RouteComponentType = 'basic' | 'blank' | 'multi' | 'self'; /** 路由描述 */ - interface RouteMeta { + interface RouteMeta { /** 路由标题(可用来作document.title或者菜单的名称) */ title: string; /** 路由的动态路径(需要动态路径的页面需要将path添加进范型参数) */ - dynamicPath?: AuthRouteUtils.GetDynamicPath<'/login'>; + dynamicPath?: AuthRouteUtils.GetDynamicPath; /** 作为单级路由的父级路由布局组件 */ singleLayout?: Extract; /** 需要登录权限 */ @@ -83,7 +83,7 @@ declare namespace AuthRoute { /** 子路由 */ children?: Route[]; /** 路由描述 */ - meta: RouteMeta; + meta: RouteMeta>; } & Omit : never; diff --git a/src/typings/router.d.ts b/src/typings/router.d.ts index 0e6f6cd28..1a458eafb 100644 --- a/src/typings/router.d.ts +++ b/src/typings/router.d.ts @@ -1,5 +1,5 @@ import 'vue-router'; declare module 'vue-router' { - interface RouteMeta extends AuthRoute.RouteMeta {} + interface RouteMeta extends AuthRoute.RouteMeta {} }