refactor: 删除菜单 name,标题必填且同级唯一并加库约束

This commit is contained in:
2026-09-11 14:42:19 +08:00
parent 00658f00c0
commit 6ac55fe5d4
20 changed files with 303 additions and 267 deletions
@@ -9,14 +9,12 @@ export namespace MenuDTO {
parentId?: number | null;
/** 超级菜单标识 */
superMenu?: number;
/** 菜单名称 */
name: string;
/** 路由名称(Vue Router name,建议英文唯一) */
routeName?: string;
/** 菜单标题(侧栏) */
title?: string;
/** 路由名称(Vue Router name,建议英文唯一;可空) */
routeName?: null | string;
/** 菜单标题(侧栏/管理端展示) */
title: string;
/** 标签页标题(可空;空则回退 title) */
tabTitle?: string;
tabTitle?: null | string;
/** 路由路径 */
path?: string;
/** 组件路径 */
@@ -24,9 +22,9 @@ export namespace MenuDTO {
/** 重定向路径 */
redirect?: string;
/** 菜单图标(Iconify 名) */
icon?: string;
icon?: null | string;
/** 自定义 SVG(有值时优先于 icon) */
iconSvg?: string;
iconSvg?: null | string;
/** 排序 */
order?: number;
/** 菜单类型 */
@@ -45,14 +43,12 @@ export namespace MenuDTO {
parentId?: number | null;
/** 超级菜单标识 */
superMenu?: number;
/** 菜单名称 */
name: string;
/** 路由名称(Vue Router name,建议英文唯一) */
routeName?: string;
/** 菜单标题(侧栏) */
title?: string;
/** 路由名称(Vue Router name,建议英文唯一;可空) */
routeName?: null | string;
/** 菜单标题(侧栏/管理端展示) */
title: string;
/** 标签页标题(可空;空则回退 title) */
tabTitle?: string;
tabTitle?: null | string;
/** 路由路径 */
path?: string;
/** 组件路径 */
@@ -60,9 +56,9 @@ export namespace MenuDTO {
/** 重定向路径 */
redirect?: string;
/** 菜单图标(Iconify 名) */
icon?: string;
icon?: null | string;
/** 自定义 SVG(有值时优先于 icon) */
iconSvg?: string;
iconSvg?: null | string;
/** 排序 */
order?: number;
/** 菜单类型 */
@@ -12,12 +12,10 @@ export namespace MenuVO {
parentId?: number;
/** 超级菜单标识 */
superMenu?: number;
/** 菜单名称 */
name: string;
/** 路由名称(Vue Router name) */
/** 路由名称(Vue Router name;可空) */
routeName?: string;
/** 菜单标题(侧栏) */
title?: string;
/** 菜单标题(侧栏/管理端展示) */
title: string;
/** 标签页标题(可空;空则回退 title) */
tabTitle?: string;
/** 路由路径 */