From b06f6a316b6a8293bb8aba6bfff33336b66c032a Mon Sep 17 00:00:00 2001 From: ahaos <8406649+lhailgl@user.noreply.gitee.com> Date: 星期三, 13 十二月 2023 09:01:52 +0800 Subject: [PATCH] !64 版本升级 * Merge branch 'dev' of gitee.com:JavaLionLi/plus-ui into ts * 升级依赖 * !61 fix: 删除重复环境变量ElUploadInstance * fix: 删除重复环境变量ElUploadInstance --- src/types/router.d.ts | 59 +++++++++++++++++++++++++++++------------------------------ 1 files changed, 29 insertions(+), 30 deletions(-) diff --git a/src/types/router.d.ts b/src/types/router.d.ts index 07d177f..b161040 100644 --- a/src/types/router.d.ts +++ b/src/types/router.d.ts @@ -1,35 +1,34 @@ -import { RouteRecordRaw } from 'vue-router'; - +import { LocationQuery, type RouteMeta as VRouteMeta } from 'vue-router'; declare module 'vue-router' { - type RouteOption = { - hidden?: boolean; - permissions?: string[]; - roles?: string[]; - component?: any; - children?: RouteOption[]; - alwaysShow?: boolean; - parentPath?: string; - meta?: { - title: string; - icon: string; - }; - } & RouteRecordRaw; + interface RouteMeta extends VRouteMeta { + link?: string; + title?: string; + affix?: boolean; + noCache?: boolean; + activeMenu?: string; + icon?: string; + breadcrumb?: boolean; + } - interface _RouteLocationBase { - children?: RouteOption[]; - } + interface _RouteRecordBase { + hidden?: boolean | string | number; + permissions?: string[]; + roles?: string[]; + alwaysShow?: boolean; + query?: string; + } - interface RouteLocationOptions { - fullPath?: string; - } + interface _RouteLocationBase { + children?: _RouteRecordBase[]; + path?: string; + } - interface TagView extends Partial<_RouteLocationBase> { - 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; + } } -- Gitblit v1.9.3