routes.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. const routes = [
  2. {
  3. path: "/pages/login/login",
  4. name: 'login',
  5. meta: {
  6. title: '登录',
  7. },
  8. },
  9. {
  10. //注意:path必须跟pages.json中的地址对应,最前面别忘了加'/'哦
  11. path: '/pages/index/index',
  12. name: 'index',
  13. meta: {
  14. title: '主页',
  15. },
  16. },
  17. {
  18. //注意:path必须跟pages.json中的地址对应,最前面别忘了加'/'哦
  19. path: '/pages/home/home',
  20. //aliasPath:'/', //对于h5端你必须在首页加上aliasPath并设置为/
  21. name: 'home',
  22. meta: {
  23. title: '首页',
  24. },
  25. },
  26. {
  27. path: '/pages/user/people',
  28. name: 'people',
  29. meta: {
  30. title: '个人中心',
  31. },
  32. },
  33. {
  34. path: '/pages/user/userdetail',
  35. name: 'userdetail',
  36. meta: {
  37. title: '个人详情',
  38. },
  39. },
  40. {
  41. path: '/pages/user/useredit',
  42. name: 'useredit',
  43. meta: {
  44. title: '个人编辑',
  45. },
  46. },
  47. {
  48. path: '/pages/user/userexit',
  49. name: 'userexit',
  50. meta: {
  51. title: '退出',
  52. },
  53. },
  54. {
  55. path: '/pages/common/exit',
  56. name: 'exit',
  57. meta: {
  58. title: '退出',
  59. },
  60. },
  61. {
  62. path: '/pages/common/success',
  63. name: 'success',
  64. meta: {
  65. title: 'success',
  66. },
  67. },
  68. ]
  69. export default routes