docs: route meta

This commit is contained in:
pany 2024-11-26 17:20:15 +08:00
parent 663a2c7173
commit 609c1b4b4b
2 changed files with 5 additions and 6 deletions

View File

@ -229,7 +229,7 @@ export const dynamicRoutes: RouteRecordRaw[] = [
name: "PagePermission", name: "PagePermission",
meta: { meta: {
title: "页面级", title: "页面级",
roles: ["admin"] // 或者在子导航中设置角色 roles: ["admin"] // 或者在子路由中设置角色
} }
}, },
{ {

View File

@ -33,15 +33,14 @@ declare module "vue-router" {
*/ */
affix?: boolean affix?: boolean
/** /**
* @description children 1 * @description children 1
* @description * @description 1
* @description children * @description alwaysShow: true
* @description alwaysShow: true
*/ */
alwaysShow?: boolean alwaysShow?: boolean
/** /**
* @description 示例: activeMenu: "/xxx/xxx" * @description 示例: activeMenu: "/xxx/xxx"
* @description activeMenu * @description activeMenu
* @description 使 hidden: true * @description 使 hidden: true
*/ */
activeMenu?: string activeMenu?: string