index.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. import Vue from "vue";
  2. import VueRouter from "vue-router";
  3. Vue.use(VueRouter);
  4. import Appointment from "../views/Appointment.vue";
  5. import coffee from "./coffee";
  6. import report from "./report";
  7. // http://djweb.smcic.net/hair/index.html#/appointment
  8. const router = new VueRouter({
  9. mode: "hash",
  10. routes: [
  11. {
  12. path: "/",
  13. name: "Queue",
  14. component: () =>
  15. import(/* webpackChunkName: "hair" */ "../views/Queue.vue"),
  16. meta: {
  17. title: "美发预约系统",
  18. },
  19. },
  20. {
  21. path: "/apply",
  22. name: "Apply",
  23. component: () =>
  24. import(/* webpackChunkName: "hair" */ "../views/Apply.vue"),
  25. meta: {
  26. title: "美发预约系统",
  27. },
  28. },
  29. {
  30. path: "/applyreal",
  31. name: "Applyreal",
  32. component: () =>
  33. import(/* webpackChunkName: "hair" */ "../views/Applyreal.vue"),
  34. meta: {
  35. title: "美发预约系统",
  36. },
  37. },
  38. {
  39. path: "/appointment",
  40. name: "Appointment",
  41. component: Appointment,
  42. meta: {
  43. title: "美发预约系统",
  44. },
  45. },
  46. {
  47. path: "/actionSheet",
  48. name: "ActionSheet",
  49. component: () =>
  50. import(
  51. /* webpackChunkName: "actionSheet" */ "../views/ActionSheet.vue"
  52. ),
  53. meta: {
  54. title: "汽车保险",
  55. },
  56. },
  57. {
  58. path: "/menuDiet",
  59. name: "MenuDiet",
  60. component: () =>
  61. import(/* webpackChunkName: "menu" */ "../views/MenuDiet.vue"),
  62. meta: {
  63. title: "菜单",
  64. },
  65. },
  66. {
  67. path: "/menuDiet1",
  68. name: "MenuDiet1",
  69. component: () =>
  70. import(/* webpackChunkName: "menu" */ "../views/MenuDiet1.vue"),
  71. meta: {
  72. title: "菜单",
  73. },
  74. },
  75. {
  76. path: "/pushMenu",
  77. name: "PushMenu",
  78. component: () =>
  79. import(/* webpackChunkName: "menu" */ "../views/PushMenu.vue"),
  80. meta: {
  81. title: "添加菜单",
  82. },
  83. },
  84. // 排行
  85. {
  86. path: "/ranking",
  87. name: "Ranking",
  88. component: () =>
  89. import(/* webpackChunkName: "ranking" */ "../views/ranking/index.vue"),
  90. meta: {
  91. title: "各频率频道日推数据",
  92. },
  93. },
  94. // 咖啡
  95. ...coffee,
  96. // 周报
  97. ...report,
  98. ],
  99. });
  100. export default router;