perf: 优化权限示例页面名称
This commit is contained in:
parent
97030fa04b
commit
6a39d67941
@ -192,7 +192,7 @@ export const dynamicRoutes: RouteRecordRaw[] = [
|
|||||||
{
|
{
|
||||||
path: "/permission",
|
path: "/permission",
|
||||||
component: Layouts,
|
component: Layouts,
|
||||||
redirect: "/permission/page",
|
redirect: "/permission/page-level",
|
||||||
name: "Permission",
|
name: "Permission",
|
||||||
meta: {
|
meta: {
|
||||||
title: "权限演示",
|
title: "权限演示",
|
||||||
@ -203,9 +203,9 @@ export const dynamicRoutes: RouteRecordRaw[] = [
|
|||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: "page",
|
path: "page-level",
|
||||||
component: () => import("@/pages/demo/permission/page.vue"),
|
component: () => import("@/pages/demo/permission/page-level.vue"),
|
||||||
name: "PagePermission",
|
name: "PermissionPageLevel",
|
||||||
meta: {
|
meta: {
|
||||||
title: "页面级",
|
title: "页面级",
|
||||||
// 或者在子路由中设置角色
|
// 或者在子路由中设置角色
|
||||||
@ -213,9 +213,9 @@ export const dynamicRoutes: RouteRecordRaw[] = [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "directive",
|
path: "button-level",
|
||||||
component: () => import("@/pages/demo/permission/directive.vue"),
|
component: () => import("@/pages/demo/permission/button-level.vue"),
|
||||||
name: "DirectivePermission",
|
name: "PermissionButtonLevel",
|
||||||
meta: {
|
meta: {
|
||||||
title: "按钮级",
|
title: "按钮级",
|
||||||
// 如果未设置角色,则表示:该页面不需要权限,但会继承根路由的角色
|
// 如果未设置角色,则表示:该页面不需要权限,但会继承根路由的角色
|
||||||
|
Loading…
x
Reference in New Issue
Block a user