From 838856e53fb7ac929b70ce9523310970d09a8cd3 Mon Sep 17 00:00:00 2001 From: Frost-ZX Date: Fri, 6 Sep 2024 20:42:32 +0800 Subject: [PATCH] =?UTF-8?q?chore(types):=20=E6=B7=BB=E5=8A=A0=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=20meta=20=E5=B1=9E=E6=80=A7=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/web.d.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/types/web.d.ts b/types/web.d.ts index de73e7d..ea1e108 100644 --- a/types/web.d.ts +++ b/types/web.d.ts @@ -4,7 +4,7 @@ import type { } from 'vue'; import type { - RouteLocationRaw, + RouteLocationRaw, RouteRecordRaw, } from 'vue-router'; declare global { @@ -86,14 +86,25 @@ declare global { // Vue Router type VueRouteLocationRaw = RouteLocationRaw; + type VueRouteRecordRaw = RouteRecordRaw; } declare module 'vue-router' { interface RouteMeta { + + /** 主界面侧边栏图标 class */ iconClass?: string; + + /** 是否为工具页面 */ + isToolDetail?: boolean; + + /** 是否在主界面侧边栏显示 */ showInAside?: boolean; + + /** 页面标题 */ title?: string; + } }