index.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. import Index from '@/components/Index'
  4. import UserLogin from '@/components/user/Login'
  5. import UserSetting from '@/components/user/Setting'
  6. import UserRegister from '@/components/user/Register'
  7. import UserResetPassword from '@/components/user/ResetPassword'
  8. import ResetPasswordByUrl from '@/components/user/ResetPasswordByUrl'
  9. import ItemIndex from '@/components/item/Index'
  10. import ItemAdd from '@/components/item/Add'
  11. import ItemPassword from '@/components/item/Password'
  12. import ItemShow from '@/components/item/show/Index'
  13. import ItemExport from '@/components/item/export/Index'
  14. import ItemSetting from '@/components/item/setting/Index'
  15. import PageIndex from '@/components/page/Index'
  16. import PageEdit from '@/components/page/edit/Index'
  17. import PageDiff from '@/components/page/Diff'
  18. import Catalog from '@/components/catalog/Index'
  19. import Notice from '@/components/notice/Index'
  20. import Admin from '@/components/admin/Index'
  21. import Team from '@/components/Team/Index'
  22. import TeamMember from '@/components/Team/Member'
  23. import TeamItem from '@/components/Team/Item'
  24. Vue.use(Router)
  25. export default new Router({
  26. routes: [
  27. {
  28. path: '/',
  29. name: 'Index',
  30. component: Index
  31. },
  32. {
  33. path: '/user/login',
  34. name: 'UserLogin',
  35. component: UserLogin
  36. },
  37. {
  38. path: '/user/setting',
  39. name: 'UserSetting',
  40. component: UserSetting
  41. },
  42. {
  43. path: '/user/register',
  44. name: 'UserRegister',
  45. component: UserRegister
  46. },
  47. {
  48. path: '/user/resetPassword',
  49. name: 'UserResetPassword',
  50. component: UserResetPassword
  51. },
  52. {
  53. path: '/user/ResetPasswordByUrl',
  54. name: 'ResetPasswordByUrl',
  55. component: ResetPasswordByUrl
  56. },
  57. {
  58. path: '/item/index',
  59. name: 'ItemIndex',
  60. component: ItemIndex
  61. },
  62. {
  63. path: '/item/add',
  64. name: 'ItemAdd',
  65. component: ItemAdd
  66. },
  67. {
  68. path: '/item/password/:item_id',
  69. name: 'ItemPassword',
  70. component: ItemPassword
  71. },
  72. {
  73. path: '/:item_id',
  74. name: 'ItemShow',
  75. component: ItemShow
  76. },
  77. {
  78. path: '/item/export/:item_id',
  79. name: 'ItemExport',
  80. component: ItemExport
  81. },
  82. {
  83. path: '/item/setting/:item_id',
  84. name: 'ItemSetting',
  85. component: ItemSetting
  86. },
  87. {
  88. path: '/page/:page_id',
  89. name: 'PageIndex',
  90. component: PageIndex
  91. },
  92. {
  93. path: '/page/edit/:item_id/:page_id',
  94. name: 'PageEdit',
  95. component: PageEdit
  96. },
  97. {
  98. path: '/page/diff/:page_id/:page_history_id',
  99. name: 'PageDiff',
  100. component: PageDiff
  101. },
  102. {
  103. path: '/catalog/:item_id',
  104. name: 'Catalog',
  105. component: Catalog
  106. },
  107. {
  108. path: '/notice/index',
  109. name: 'Notice',
  110. component: Notice
  111. },
  112. {
  113. path: '/admin/index',
  114. name: 'Admin',
  115. component: Admin
  116. },
  117. {
  118. path: '/team/index',
  119. name: 'Team',
  120. component: Team
  121. },
  122. {
  123. path: '/team/member/:team_id',
  124. name: 'TeamMember',
  125. component: TeamMember
  126. },
  127. {
  128. path: '/team/item/:team_id',
  129. name: 'TeamItem',
  130. component: TeamItem
  131. },
  132. ]
  133. })