diff --git a/src/global.d.ts b/src/global.d.ts index 8c364e8d..698ca25e 100644 --- a/src/global.d.ts +++ b/src/global.d.ts @@ -225,12 +225,8 @@ declare module 'vue-router' { } declare namespace Route { - interface recordRaw extends Omit { - meta: RouteMeta - children?: recordRaw[] - } interface recordMainRaw { - meta: { + meta?: { title?: string | Function icon?: string auth?: string | string[] diff --git a/src/layouts/components/Search/index.vue b/src/layouts/components/Search/index.vue index af8cdbda..d2488af4 100644 --- a/src/layouts/components/Search/index.vue +++ b/src/layouts/components/Search/index.vue @@ -1,6 +1,7 @@