Skip to content

Commit 6a39d67

Browse files
committed
perf: 优化权限示例页面名称
1 parent 97030fa commit 6a39d67

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed
File renamed without changes.

src/router/index.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export const dynamicRoutes: RouteRecordRaw[] = [
192192
{
193193
path: "/permission",
194194
component: Layouts,
195-
redirect: "/permission/page",
195+
redirect: "/permission/page-level",
196196
name: "Permission",
197197
meta: {
198198
title: "权限演示",
@@ -203,19 +203,19 @@ export const dynamicRoutes: RouteRecordRaw[] = [
203203
},
204204
children: [
205205
{
206-
path: "page",
207-
component: () => import("@/pages/demo/permission/page.vue"),
208-
name: "PagePermission",
206+
path: "page-level",
207+
component: () => import("@/pages/demo/permission/page-level.vue"),
208+
name: "PermissionPageLevel",
209209
meta: {
210210
title: "页面级",
211211
// 或者在子路由中设置角色
212212
roles: ["admin"]
213213
}
214214
},
215215
{
216-
path: "directive",
217-
component: () => import("@/pages/demo/permission/directive.vue"),
218-
name: "DirectivePermission",
216+
path: "button-level",
217+
component: () => import("@/pages/demo/permission/button-level.vue"),
218+
name: "PermissionButtonLevel",
219219
meta: {
220220
title: "按钮级",
221221
// 如果未设置角色,则表示:该页面不需要权限,但会继承根路由的角色

0 commit comments

Comments
 (0)