Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-21 11:29:20 +08:00

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",
meta: {
title: "页面级",
roles: ["admin"] // 或者在子导航中设置角色
roles: ["admin"] // 或者在子路由中设置角色
}
},
{

View File

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