const Chat = () => import('views/chat/Chat') const ChatIndex = () => import('views/chat/ChatIndex') export default { path: '/chat', name: 'Chat', component: Chat, meta: { needAuth: true }, children: [ { path: '', name: 'ChatIndex', component: ChatIndex, meta: { needAuth: true } } ] }