Skip to content

Commit

Permalink
解决 Vue 前端 404 问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lenve committed Mar 15, 2020
1 parent fd6ba03 commit 3c53c1c
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions vuehr/src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,31 @@ export default new Router({
path: '/',
name: 'Login',
component: Login,
hidden:true
hidden: true
}, {
path: '/home',
name: 'Home',
component: Home,
hidden:true,
meta:{
roles:['admin','user']
hidden: true,
meta: {
roles: ['admin', 'user']
},
children:[
children: [
{
path: '/chat',
name: '在线聊天',
component: FriendChat,
hidden:true
},{
hidden: true
}, {
path: '/hrinfo',
name: '个人中心',
component: HrInfo,
hidden:true
hidden: true
}
]
}, {
path: '*',
redirect: '/home'
}
]
})

0 comments on commit 3c53c1c

Please sign in to comment.