Initial commit: One Pipe System
完整的管理系统,包含账户管理、卡片管理、套餐管理、财务管理等功能模块。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
46
src/types/router/index.ts
Normal file
46
src/types/router/index.ts
Normal file
@@ -0,0 +1,46 @@
|
||||
/**
|
||||
* 路由相关类型定义
|
||||
*/
|
||||
|
||||
import { RouteRecordRaw } from 'vue-router'
|
||||
|
||||
// 路由元数据
|
||||
export interface RouteMeta extends Record<string | number | symbol, unknown> {
|
||||
/** 路由标题 */
|
||||
title: string
|
||||
/** 路由图标 */
|
||||
icon?: string
|
||||
/** 是否显示徽章 */
|
||||
showBadge?: boolean
|
||||
/** 文本徽章 */
|
||||
showTextBadge?: string
|
||||
/** 是否在菜单中隐藏 */
|
||||
isHide?: boolean
|
||||
/** 是否在标签页中隐藏 */
|
||||
isHideTab?: boolean
|
||||
/** 外部链接 */
|
||||
link?: string
|
||||
/** 是否为iframe */
|
||||
isIframe?: boolean
|
||||
/** 是否缓存 */
|
||||
keepAlive?: boolean
|
||||
/** 操作权限 */
|
||||
authList?: Array<{
|
||||
title: string
|
||||
auth_mark: string
|
||||
}>
|
||||
/** 是否为一级菜单 */
|
||||
isFirstLevel?: boolean
|
||||
/** 角色权限 */
|
||||
roles?: string[]
|
||||
/** 是否固定标签页 */
|
||||
fixedTab?: boolean
|
||||
}
|
||||
|
||||
// 扩展路由记录
|
||||
export interface AppRouteRecord extends Omit<RouteRecordRaw, 'meta' | 'children' | 'component'> {
|
||||
id?: number
|
||||
meta: RouteMeta
|
||||
children?: AppRouteRecord[]
|
||||
component?: string | (() => Promise<any>)
|
||||
}
|
||||
Reference in New Issue
Block a user