routes.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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/user/location",
  56. name: "location",
  57. meta: {
  58. title: "定位",
  59. },
  60. },
  61. {
  62. path: "/pages/common/exit",
  63. name: "exit",
  64. meta: {
  65. title: "退出",
  66. },
  67. },
  68. {
  69. path: "/pages/common/success",
  70. name: "success",
  71. meta: {
  72. title: "success",
  73. },
  74. },
  75. {
  76. path: "/pages/addressbook/address-book",
  77. name: "addressBook",
  78. meta: {
  79. title: "addressBook",
  80. },
  81. },
  82. {
  83. path: "/pages/addressbook/level-address-book",
  84. name: "levelAddressBook",
  85. meta: {
  86. title: "levelAddressBook",
  87. },
  88. },
  89. {
  90. path: "/pages/addressbook/member",
  91. name: "member",
  92. meta: {
  93. title: "member",
  94. },
  95. },
  96. {
  97. path: "/pages/addressbook/address-detail",
  98. name: "addressDetail",
  99. meta: {
  100. title: "addressDetail",
  101. },
  102. },
  103. {
  104. path: "/pages/annotation/annotationList",
  105. name: "annotationList",
  106. meta: {
  107. title: "通知公告",
  108. },
  109. },
  110. {
  111. path: "/pages/annotation/annotationDetail",
  112. name: "annotationDetail",
  113. meta: {
  114. title: "通知详情",
  115. },
  116. },
  117. {
  118. path: "/pages/common/helloWorld",
  119. name: "helloWorld",
  120. meta: {
  121. title: "helloWorld",
  122. },
  123. },
  124. {
  125. path: "/pages/home/detail/autodoor/autodoor",
  126. name: "autodoor",
  127. meta: {
  128. title: "风门",
  129. },
  130. },
  131. ];
  132. export default routes;