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 | 48 +++++++++++++++++++++++------------------------- 1 files changed, 23 insertions(+), 25 deletions(-) diff --git a/src/types/router.d.ts b/src/types/router.d.ts index 9731fa2..b161040 100644 --- a/src/types/router.d.ts +++ b/src/types/router.d.ts @@ -1,36 +1,34 @@ -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[]; } - 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