|
|
|
|
import Vue from "vue";
|
|
|
|
|
import VueRouter from "vue-router";
|
|
|
|
|
|
|
|
|
|
Vue.use(VueRouter);
|
|
|
|
|
|
|
|
|
|
const routes = [
|
|
|
|
|
{
|
|
|
|
|
path: "/",
|
|
|
|
|
name: "Home",
|
|
|
|
|
redirect: "/main",
|
|
|
|
|
component: () => import("../views/main.vue"),
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: "/main",
|
|
|
|
|
name: "Main",
|
|
|
|
|
component: () => import("../components/main/index.vue"),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
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"),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/login",
|
|
|
|
|
name: "login",
|
|
|
|
|
// component: () => import("../components/Login/login.vue"),
|
|
|
|
|
component: () => import("../views/login.vue"),
|
|
|
|
|
// redirect: "/login",
|
|
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: "/login",
|
|
|
|
|
name: "login",
|
|
|
|
|
component: () => import("../components/Login/login.vue"),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/updatepsw",
|
|
|
|
|
name: "updatepsw",
|
|
|
|
|
component: () => import("../components/Login/updatepsw.vue"),
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "*",
|
|
|
|
|
name: "404",
|
|
|
|
|
component: () => import("../views/404.vue"),
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// path: "/login",
|
|
|
|
|
// name: "Loginpage",
|
|
|
|
|
// component: () => import("../views/login.vue"),
|
|
|
|
|
// redirect: "/login",
|
|
|
|
|
// children: [
|
|
|
|
|
// {
|
|
|
|
|
// path: "/register",
|
|
|
|
|
// name: "register",
|
|
|
|
|
// component: () => import("../components/Login/register.vue"),
|
|
|
|
|
// },
|
|
|
|
|
// ],
|
|
|
|
|
// },
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const router = new VueRouter({
|
|
|
|
|
routes,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export default router;
|