1. 提交代码

This commit is contained in:
2026-04-17 09:46:21 +08:00
parent dd379b1e8f
commit 5210a140ba
9 changed files with 2675 additions and 48 deletions

4
types/router.d.ts vendored
View File

@@ -36,6 +36,8 @@ import { defineComponent } from 'vue'
**/
declare module 'vue-router' {
interface RouteMeta extends Record<string | number | symbol, unknown> {
/** 后台菜单 id动态路由由 generateRoute 从菜单节点写入,用于 Dify 知识库命名等) */
menuId?: number
hidden?: boolean
alwaysShow?: boolean
title?: string
@@ -68,6 +70,8 @@ declare global {
}
interface AppCustomRouteRecordRaw extends Omit<RouteRecordRaw, 'meta'> {
/** 菜单编号,与后端 MenuVO.id 一致 */
id?: number
icon: any
name: string
meta: RouteMeta