feat: Add dynamic route
This commit is contained in:
9
types/router.d.ts
vendored
9
types/router.d.ts
vendored
@@ -62,4 +62,13 @@ declare global {
|
||||
props?: Recordable
|
||||
fullPath?: string
|
||||
}
|
||||
|
||||
declare interface AppCustomRouteRecordRaw extends Omit<RouteRecordRaw, 'meta'> {
|
||||
name: string
|
||||
meta: RouteMeta
|
||||
component: string
|
||||
path: string
|
||||
redirect: string
|
||||
children?: AppCustomRouteRecordRaw[]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user