fixing sub path
This commit is contained in:
parent
0679ceb9bf
commit
f810ef6cec
3 changed files with 490 additions and 343 deletions
|
|
@ -1,10 +1,12 @@
|
|||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import { createRouter, createWebHistory } from "vue-router";
|
||||
|
||||
const MainLayout = () => import("@/views/MainLayout.vue");
|
||||
const Metadata = () => import("@/modules/01_metadata/views/Main.vue");
|
||||
const Organizational = () => import("@/modules/02_organizational/views/Main.vue");
|
||||
const Organizational = () =>
|
||||
import("@/modules/02_organizational/views/Main.vue");
|
||||
const Registration = () => import("@/modules/03_registration/views/Main.vue");
|
||||
const Registemployee = () => import("@/modules/04_registry-employee/views/Main.vue");
|
||||
const Registemployee = () =>
|
||||
import("@/modules/04_registry-employee/views/Main.vue");
|
||||
const Order = () => import("@/modules/05_order/views/Main.vue");
|
||||
const Recruitmain = () => import("@/modules/06_recruitmain/views/Main.vue");
|
||||
const Placement = () => import("@/modules/07_placement/views/Main.vue");
|
||||
|
|
@ -16,26 +18,18 @@ const Leaveadmin = () => import("@/modules/11_leaveadmin/views/Main.vue");
|
|||
const Estimate = () => import("@/modules/12_estimate/views/Main.vue");
|
||||
const Discipline = () => import("@/modules/13_discipline/views/Main.vue");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Contact = () => import("@/modules/00_contact/views/Main.vue");
|
||||
|
||||
const Maintenance = () => import("@/modules/001_Maintenance/views/Main.vue");
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
history: createWebHistory(`/faq/`),
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
name: 'home',
|
||||
path: "/",
|
||||
name: "home",
|
||||
component: MainLayout,
|
||||
children:[
|
||||
children: [
|
||||
{
|
||||
path: "/metadata",
|
||||
name: "metadata",
|
||||
|
|
@ -74,66 +68,59 @@ const router = createRouter({
|
|||
{
|
||||
path: "/order",
|
||||
name: "Order",
|
||||
component: Order
|
||||
component: Order,
|
||||
},
|
||||
|
||||
{
|
||||
path: "/recruitmain",
|
||||
name: "Recruitmain",
|
||||
component: Recruitmain
|
||||
component: Recruitmain,
|
||||
},
|
||||
|
||||
{
|
||||
path: "/placement",
|
||||
name: "Placement",
|
||||
component: Placement
|
||||
component: Placement,
|
||||
},
|
||||
|
||||
{
|
||||
path: "/retirement",
|
||||
name: "Retirement",
|
||||
component: Retirement
|
||||
component: Retirement,
|
||||
},
|
||||
|
||||
{
|
||||
path: "/insignia",
|
||||
name: "Insignia",
|
||||
component: Insignia
|
||||
component: Insignia,
|
||||
},
|
||||
|
||||
{
|
||||
path: "/leaveuser",
|
||||
name: "leaveuser",
|
||||
component: Leaveuser
|
||||
component: Leaveuser,
|
||||
},
|
||||
|
||||
{
|
||||
path: "/leaveadmin",
|
||||
name: "leaveadmin",
|
||||
component: Leaveadmin
|
||||
component: Leaveadmin,
|
||||
},
|
||||
|
||||
{
|
||||
path: "/estimate",
|
||||
name: "estimate",
|
||||
component: Estimate
|
||||
component: Estimate,
|
||||
},
|
||||
|
||||
{
|
||||
path: "/discipline",
|
||||
name: "discipline",
|
||||
component: Discipline
|
||||
component: Discipline,
|
||||
},
|
||||
|
||||
|
||||
]
|
||||
],
|
||||
},
|
||||
]
|
||||
})
|
||||
],
|
||||
});
|
||||
|
||||
export default router;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue