- 增加 Home 页面,默认重定向词页面
This commit is contained in:
@@ -21,6 +21,15 @@ export default [
|
||||
Routes: ['src/pages/Authorized'],
|
||||
authority: ['admin', 'user'],
|
||||
routes: [
|
||||
// redirect
|
||||
{ path: '/', redirect: '/home' },
|
||||
// home
|
||||
{
|
||||
path: '/home',
|
||||
name: 'home',
|
||||
icon: 'user',
|
||||
component: './Home/Home',
|
||||
},
|
||||
// admin
|
||||
{
|
||||
path: '/admin',
|
||||
@@ -34,8 +43,6 @@ export default [
|
||||
},
|
||||
],
|
||||
},
|
||||
// dashboard
|
||||
{ path: '/', redirect: '/dashboard/analysis' },
|
||||
{
|
||||
path: '/dashboard',
|
||||
name: 'dashboard',
|
||||
|
||||
Reference in New Issue
Block a user