From 5d44f9e23124f05b0906efd754ba7f8fac1f7cdd Mon Sep 17 00:00:00 2001 From: Ai3_刘小龙 <wisty0317@163.com> Date: 星期三, 20 十二月 2023 14:26:49 +0800 Subject: [PATCH] update src/views/system/dept/index.vue. append-to-body --- src/types/router.d.ts | 49 ++++++++++++++++++++++++------------------------- 1 files changed, 24 insertions(+), 25 deletions(-) diff --git a/src/types/router.d.ts b/src/types/router.d.ts index 9731fa2..f920921 100644 --- a/src/types/router.d.ts +++ b/src/types/router.d.ts @@ -1,36 +1,35 @@ -import { RouteRecordRaw } from 'vue-router'; - +import { LocationQuery, type RouteMeta as VRouteMeta } from 'vue-router'; declare module 'vue-router' { - declare type RouteOption = { - hidden?: boolean; + interface RouteMeta extends VRouteMeta { + link?: string; + title?: string; + affix?: boolean; + noCache?: boolean; + activeMenu?: string; + icon?: string; + breadcrumb?: boolean; + } + + interface _RouteRecordBase { + hidden?: boolean | string | number; permissions?: string[]; roles?: string[]; - component?: any; - children?: RouteOption[]; alwaysShow?: boolean; - parentPath?: string; - meta?: { - title: string; - icon: string; - }; query?: string; - } & RouteRecordRaw; - - declare interface _RouteLocationBase { - children?: RouteOption[]; + parentPath?: string; } - declare interface RouteLocationOptions { + interface _RouteLocationBase { + children?: _RouteRecordBase[]; + path?: string; + } + + interface TagView { fullPath?: string; - } - - declare interface TagView extends Partial<_RouteLocationBase> { + name?: string; + path?: string; title?: string; - meta?: { - link?: string; - title?: string; - affix?: boolean; - noCache?: boolean; - }; + meta?: RouteMeta; + query?: LocationQuery; } } -- Gitblit v1.9.3