mirror of
https://github.com/kailong321200875/vue-element-plus-admin.git
synced 2024-11-21 00:51:22 +08:00
types: 修改类型错误
This commit is contained in:
parent
9bcc176d16
commit
4760733bbe
5
types/router.d.ts
vendored
5
types/router.d.ts
vendored
@ -57,7 +57,7 @@ type Component<T = any> =
|
||||
| (() => Promise<T>)
|
||||
|
||||
declare global {
|
||||
declare interface AppRouteRecordRaw extends Omit<RouteRecordRaw, 'meta'> {
|
||||
declare interface AppRouteRecordRaw extends Omit<RouteRecordRaw, 'meta' | 'children'> {
|
||||
name: string
|
||||
meta: RouteMetaCustom
|
||||
component?: Component | string
|
||||
@ -66,7 +66,8 @@ declare global {
|
||||
fullPath?: string
|
||||
}
|
||||
|
||||
declare interface AppCustomRouteRecordRaw extends Omit<RouteRecordRaw, 'meta'> {
|
||||
declare interface AppCustomRouteRecordRaw
|
||||
extends Omit<RouteRecordRaw, 'meta' | 'component' | 'children'> {
|
||||
name: string
|
||||
meta: RouteMetaCustom
|
||||
component: string
|
||||
|
Loading…
Reference in New Issue
Block a user