File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff 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 // 如果未设置角色,则表示:该页面不需要权限,但会继承根路由的角色
You can’t perform that action at this time.
0 commit comments