From 6c49b47344d4ccabc05f5ece7bb147bcc3035f10 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期六, 27 七月 2024 15:08:13 +0800 Subject: [PATCH] update element-plus 2.7.5 => 2.7.8 update vue 3.4.25 => 3.4.34 update vite 5.2.10 => 5.2.12 --- src/types/router.d.ts | 54 ++++++++++++++++++++++++++++-------------------------- 1 files changed, 28 insertions(+), 26 deletions(-) diff --git a/src/types/router.d.ts b/src/types/router.d.ts index 9731fa2..11a60a0 100644 --- a/src/types/router.d.ts +++ b/src/types/router.d.ts @@ -1,36 +1,38 @@ -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 { - fullPath?: string; - } - - declare interface TagView extends Partial<_RouteLocationBase> { + interface _RouteLocationBase { + children?: _RouteRecordBase[]; + path?: string; title?: string; - meta?: { - link?: string; - title?: string; - affix?: boolean; - noCache?: boolean; - }; + } + + interface TagView { + fullPath?: string; + name?: string; + path?: string; + title?: string; + meta?: RouteMeta; + query?: LocationQuery; } } + +export {}; -- Gitblit v1.9.3