You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bocai_supplyChain_pc/src/router/index.js

48 lines
1.2 KiB
JavaScript

4 years ago
import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);
const routes = [
{
path: "/",
name: "Home",
redirect: "/list",
component: () => import("../views/main.vue"),
children: [
{
path: "/list",
name: "JobList",
component: () => import("../components/FirstJob/joblist.vue"),
},
{
path: "/detail/:id",
name: "Detail",
component: () => import("../components/FirstJob/detail.vue"),
},
{
path: "/serviceoutlets",
name: "serviceoutlets",
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import("../components/ServiceOutlets/index.vue"),
},
{
path: "/aboutus",
name: "aboutus",
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import("../components/AboutUs/index.vue"),
},
],
},
];
const router = new VueRouter({
routes,
});
export default router;