chat.js 995 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. const Chat = () => import('views/chat/Chat')
  2. const ChatList = () => import('views/chat/ChatList')
  3. const ChatDialogue = () => import('views/chat/ChatDialogue')
  4. const ChatAddressBook = () => import('views/chat/ChatAddressBook')
  5. const ChatMe = () => import('views/chat/ChatMe')
  6. export default {
  7. path: '/chat',
  8. name: 'Chat',
  9. component: Chat,
  10. redirect: '/chat/list',
  11. meta: { needAuth: false },
  12. children: [
  13. {
  14. path: '/chat/list',
  15. name: 'ChatList',
  16. component: ChatList,
  17. meta: { title: '聊天', needAuth: false }
  18. },
  19. {
  20. path: '/chat/dialogue',
  21. name: 'ChatDialogue',
  22. component: ChatDialogue,
  23. meta: { title: 'xxx', needAuth: false }
  24. },
  25. {
  26. path: '/chat/contact',
  27. name: 'ChatAddressBook',
  28. component: ChatAddressBook,
  29. meta: { title: '通讯录', needAuth: false }
  30. },
  31. {
  32. path: '/chat/me',
  33. name: 'ChatMe',
  34. component: ChatMe,
  35. meta: { title: '我', needAuth: false }
  36. }
  37. ]
  38. }