mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-31 00:24:38 +00:00
69 lines
1.2 KiB
TypeScript
69 lines
1.2 KiB
TypeScript
/**
|
|
* Type definitions for Vue Router meta fields
|
|
* Extends the RouteMeta interface with custom properties
|
|
*/
|
|
|
|
import 'vue-router'
|
|
|
|
declare module 'vue-router' {
|
|
interface RouteMeta {
|
|
/**
|
|
* Whether this route requires authentication
|
|
* @default true
|
|
*/
|
|
requiresAuth?: boolean
|
|
|
|
/**
|
|
* Whether this route requires admin role
|
|
* @default false
|
|
*/
|
|
requiresAdmin?: boolean
|
|
|
|
/**
|
|
* Page title for this route
|
|
*/
|
|
title?: string
|
|
|
|
/**
|
|
* Optional breadcrumb items for navigation
|
|
*/
|
|
breadcrumbs?: Array<{
|
|
label: string
|
|
to?: string
|
|
}>
|
|
|
|
/**
|
|
* Icon name for this route (for sidebar navigation)
|
|
*/
|
|
icon?: string
|
|
|
|
/**
|
|
* Whether to hide this route from navigation menu
|
|
* @default false
|
|
*/
|
|
hideInMenu?: boolean
|
|
|
|
/**
|
|
* Whether this route requires internal payment system to be enabled
|
|
* @default false
|
|
*/
|
|
requiresPayment?: boolean
|
|
|
|
/**
|
|
* 是否要求风控中心功能开关已启用
|
|
* @default false
|
|
*/
|
|
requiresRiskControl?: boolean
|
|
|
|
/**
|
|
* i18n key for the page title
|
|
*/
|
|
titleKey?: string
|
|
|
|
/**
|
|
* i18n key for the page description
|
|
*/
|
|
descriptionKey?: string
|
|
}
|
|
}
|