Commit 41a4b827a22e785453238da6b9b8b5b1c604b91a
1 parent
6f8d753a
fix: fix mock data error #109
Showing
1 changed file
with
6 additions
and
0 deletions
mock/sys/menu.ts
... | ... | @@ -32,6 +32,7 @@ const frontRoute = { |
32 | 32 | children: [ |
33 | 33 | { |
34 | 34 | path: 'page', |
35 | + name: 'FrontPageAuth', | |
35 | 36 | component: '/demo/permission/front/index', |
36 | 37 | meta: { |
37 | 38 | title: '页面权限', |
... | ... | @@ -39,6 +40,7 @@ const frontRoute = { |
39 | 40 | }, |
40 | 41 | { |
41 | 42 | path: 'btn', |
43 | + name: 'FrontBtnAuth', | |
42 | 44 | component: '/demo/permission/front/Btn', |
43 | 45 | meta: { |
44 | 46 | title: '按钮权限', |
... | ... | @@ -46,6 +48,7 @@ const frontRoute = { |
46 | 48 | }, |
47 | 49 | { |
48 | 50 | path: 'auth-pageA', |
51 | + name: 'FrontAuthPageA', | |
49 | 52 | component: '/demo/permission/front/AuthPageA', |
50 | 53 | meta: { |
51 | 54 | title: '权限测试页A', |
... | ... | @@ -53,6 +56,7 @@ const frontRoute = { |
53 | 56 | }, |
54 | 57 | { |
55 | 58 | path: 'auth-pageB', |
59 | + name: 'FrontAuthPageB', | |
56 | 60 | component: '/demo/permission/front/AuthPageB', |
57 | 61 | meta: { |
58 | 62 | title: '权限测试页B', |
... | ... | @@ -69,6 +73,7 @@ const backRoute = { |
69 | 73 | children: [ |
70 | 74 | { |
71 | 75 | path: 'page', |
76 | + name: 'BackAuthPage', | |
72 | 77 | component: '/demo/permission/back/index', |
73 | 78 | meta: { |
74 | 79 | title: '页面权限', |
... | ... | @@ -76,6 +81,7 @@ const backRoute = { |
76 | 81 | }, |
77 | 82 | { |
78 | 83 | path: 'btn', |
84 | + name: 'BackAuthBtn', | |
79 | 85 | component: '/demo/permission/back/Btn', |
80 | 86 | meta: { |
81 | 87 | title: '按钮权限', | ... | ... |