import { createWebHistory, createWebHashHistory, createMemoryHistory, createRouter, } from "vue-router"; import Login from "../views/index/Login.vue"; const router = createRouter({ history: createWebHashHistory(), routes: [ { path: "/index", name: "index", meta: { title: "海事总台", }, component: () => import("../views/index/Index.vue"), }, { path: "/login", name: "login", meta: { title: "登录", }, component: Login, }, { path: "/marineManage/marineNotice", name: "marineNotice", meta: { title: "海事公告", keepAlive: true, }, component: () => import("../views/marineManage/marineNotice.vue"), }, { path: "/shipManage/shipList", name: "shipList", meta: { title: "船舶列表", keepAlive: true, }, component: () => import("../views/shipManage/shipList.vue"), }, { path: "/shipManage/shipDetail", name: "shipDetail", meta: { title: "船舶详情", }, component: () => import("../views/shipManage/shipDetail.vue"), }, { path: "/shipOwnerManage/shipOwnerDetail", name: "shipOwnerDetail", meta: { title: "船东详情", }, component: () => import("../views/shipOwnerManage/shipOwnerDetail.vue"), }, { path: "/shipOwnerManage/shipOwnerList", name: "shipOwnerList", meta: { title: "船东列表", }, component: () => import("../views/shipOwnerManage/shipOwnerList.vue"), }, { path: "//workStation/certsManage", name: "certsManage", meta: { title: "证书管理", }, component: () => import("../views/workStation/certsManage.vue"), }, { path: "/workStation/insuranceManage", name: "insuranceManage", meta: { title: "保险管理", }, component: () => import("../views/workStation/insuranceManage.vue"), }, { path: "/shipSecurityManage/shipCheckTemplateDetail", name: "shipCheckTemplateDetail", meta: { title: "船舶安检模板", }, component: () => import("../views/shipSecurityManage/shipCheckTemplateDetail.vue"), }, { path: "/shipSecurityManage/shipCheckTemplateList", name: "shipCheck", meta: { title: "船舶安检模板列表", }, component: () => import("../views/shipSecurityManage/shipCheckTemplateList.vue"), }, { path: "/shipSecurityManage/checkShipList", name: "checkShipList", meta: { title: "船舶安检列表", }, component: () => import("../views/shipSecurityManage/checkShipList.vue"), }, { path: "/shipSecurityManage/checkShip", name: "checkShip", meta: { title: "发起船舶安检", }, component: () => import("../views/shipSecurityManage/checkShip.vue"), }, { path: "/shipSecurityManage/checkShipExamineList", name: "checkShipExamineList", meta: { title: "安检审核列表", }, component: () => import("../views/shipSecurityManage/checkShipExamineList.vue"), }, { path: "/shipSecurityManage/checkShipExamine", name: "checkShipExamine", meta: { title: "船舶安检审核", }, component: () => import("../views/shipSecurityManage/checkShipExamine.vue"), }, { path: "/shipSecurityManage/checkSingleShip", name: "checkSingleShip", meta: { title: "发起船舶安检审核", }, component: () => import("../views/shipSecurityManage/checkSingleShip.vue"), }, { path: "/shipSecurityManage/shipCheckHistoryList", name: "shipCheckHistoryList", meta: { title: "历史船舶安检", }, component: () => import("../views/shipSecurityManage/shipCheckHistoryList.vue"), }, { path: "/fireSafetyManage/fireSafetyTemplateList", name: "fireSafetyTemplateList", meta: { title: "消防模板列表", }, component: () => import("../views/fireSafetyManage/fireSafetyTemplateList.vue"), }, { path: "/fireSafetyManage/fireSafetyTemplateDetail", name: "fireSafetyTemplateDetail", meta: { title: "消防安检模板详情", }, component: () => import("../views/fireSafetyManage/fireSafetyTemplateDetail.vue"), }, { path: "/fireSafetyManage/checkFireSafetyExamineList", name: "checkFireSafetyExamineList", meta: { title: "消防安检审核列表", }, component: () => import("../views/fireSafetyManage/checkFireSafetyExamineList.vue"), }, { path: "/fireSafetyManage/checkFireSafetyExamine", name: "checkFireSafetyExamine", meta: { title: "消防安检审核", }, component: () => import("../views/fireSafetyManage/checkFireSafetyExamine.vue"), }, ], }); export default router;