index.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. import {
  2. createWebHistory,
  3. createWebHashHistory,
  4. createMemoryHistory,
  5. createRouter,
  6. } from "vue-router";
  7. import Login from "../views/index/Login.vue";
  8. const router = createRouter({
  9. history: createWebHashHistory(),
  10. routes: [
  11. {
  12. path: "/index",
  13. name: "index",
  14. component: () => import("../views/index/Index.vue"),
  15. },
  16. {
  17. path: "/login",
  18. name: "login",
  19. meta: {
  20. title: "登录",
  21. },
  22. component: Login,
  23. },
  24. {
  25. path: "/shipManage/shipList",
  26. name: "shipList",
  27. meta: {
  28. title: "船舶列表",
  29. },
  30. component: () => import("../views/shipManage/shipList.vue"),
  31. },
  32. {
  33. path: "/shipManage/shipDetail",
  34. name: "shipDetail",
  35. meta: {
  36. title: "船舶详情",
  37. },
  38. component: () => import("../views/shipManage/shipDetail.vue"),
  39. },
  40. {
  41. path: "/shipOwnerManage/shipOwnerDetail",
  42. name: "shipOwnerDetail",
  43. meta: {
  44. title: "船东详情",
  45. },
  46. component: () => import("../views/shipOwnerManage/shipOwnerDetail.vue"),
  47. },
  48. {
  49. path: "/shipOwnerManage/shipOwnerList",
  50. name: "shipOwnerList",
  51. meta: {
  52. title: "船东列表",
  53. },
  54. component: () => import("../views/shipOwnerManage/shipOwnerList.vue"),
  55. },
  56. {
  57. path: "//workStation/certsManage",
  58. name: "certsManage",
  59. meta: {
  60. title: "证书管理",
  61. },
  62. component: () => import("../views/workStation/certsManage.vue"),
  63. },
  64. {
  65. path: "/workStation/insuranceManage",
  66. name: "insuranceManage",
  67. meta: {
  68. title: "保险管理",
  69. },
  70. component: () => import("../views/workStation/insuranceManage.vue"),
  71. },
  72. ],
  73. });
  74. export default router;