From 335a1e601910f8a40b18ba837dd6d878a2f3ee7e Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期四, 08 八月 2024 18:19:58 +0800
Subject: [PATCH] update 优化 oss 配置按钮 使用ossConfig权限标识符与oss权限分离
---
src/types/router.d.ts | 53 ++++++++++++++++++++++++++++-------------------------
1 files changed, 28 insertions(+), 25 deletions(-)
diff --git a/src/types/router.d.ts b/src/types/router.d.ts
index 0f2b026..11a60a0 100644
--- a/src/types/router.d.ts
+++ b/src/types/router.d.ts
@@ -1,35 +1,38 @@
-import { RouteRecordRaw } from 'vue-router';
-
+import { LocationQuery, type RouteMeta as VRouteMeta } from 'vue-router';
declare module 'vue-router' {
- 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;
+ query?: string;
parentPath?: string;
- meta?: {
- title: string;
- icon: string;
- };
- } & RouteRecordRaw;
+ }
interface _RouteLocationBase {
- children?: RouteOption[];
- }
-
- interface RouteLocationOptions {
- fullPath?: string;
- }
-
- interface TagView extends Partial<_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