| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- 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",
- component: () => import("../views/index/Index.vue"),
- },
- {
- path: "/login",
- name: "login",
- meta: {
- title: "登录",
- },
- component: Login,
- },
- {
- path: "/shipManage/shipList",
- name: "shipList",
- meta: {
- title: "船舶列表",
- },
- 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"),
- },
- ],
- });
- export default router;
|