feat: 菜单侧栏标题与标签标题拆分并支持 tab_title 回退

This commit is contained in:
2026-09-05 18:27:53 +08:00
parent d99d8352b6
commit ebca4d093a
19 changed files with 119 additions and 21 deletions
@@ -118,9 +118,17 @@ interface RouteMeta {
*/
query?: Recordable;
/**
* 标题名称
* 标题名称(侧栏菜单)
*/
title: string;
/**
* 标签页标题(可空;空则回退 title;运行时 setTabTitle 写入 newTabTitle 优先生效)
*/
tabTitle?: string;
/**
* 运行时覆盖的标签标题(如概览页动态名)
*/
newTabTitle?: string;
}
// 定义递归类型以将 RouteRecordRaw 的 component 属性更改为 string