feat 路由和菜单对接

This commit is contained in:
xxm
2022-10-14 18:23:10 +08:00
parent bb79544e81
commit c420ec5be1
15 changed files with 144 additions and 80 deletions

2
types/config.d.ts vendored
View File

@@ -159,4 +159,6 @@ export interface GlobEnvConfig {
VITE_GLOB_APP_SHORT_NAME: string
// Upload url
VITE_GLOB_UPLOAD_URL?: string
// 终端类型
VITE_GLOB_APP_CLIENT?: string
}

19
types/vue-router.d.ts vendored
View File

@@ -3,24 +3,25 @@ export {}
declare module 'vue-router' {
interface RouteMeta extends Record<string | number | symbol, unknown> {
orderNo?: number
// title
// 标题
title: string
// dynamic router level.
// 动态路由器级别。
dynamicLevel?: number
// dynamic router real route path (For performance).
// 动态路由器真实路由路径 (用于性能)。
realPath?: string
// Whether to ignore permissions
// 是否忽略鉴权
ignoreAuth?: boolean
// role info
// 角色
roles?: RoleEnum[]
// Whether not to cache
// 是否不缓存
ignoreKeepAlive?: boolean
// Is it fixed on tab
// 它固定在tab上吗
affix?: boolean
// icon on tab
// 图标
icon?: string
// Iframe 打开的连接
frameSrc?: string
// current page transition
// current page transition 当前页面转换
transitionName?: string
// Whether the route has been dynamically added
hideBreadcrumb?: boolean