75 lines
1.8 KiB
JavaScript
75 lines
1.8 KiB
JavaScript
// Composables
|
|
import { createRouter, createWebHistory } from 'vue-router'
|
|
|
|
const routes = [
|
|
{
|
|
path: '/',
|
|
component: () => import('@/layouts/default/DefaultPortal.vue'),
|
|
children: [
|
|
{
|
|
path: '/',
|
|
name: 'HomePage',
|
|
component: () => import('@/views/HomePage.vue'),
|
|
meta:{
|
|
title:"Портал МиФНС по ЦОД №2"
|
|
}
|
|
},
|
|
{
|
|
path: '/structure',
|
|
name: 'StructurePage',
|
|
component: () => import('@/views/StructurePage.vue'),
|
|
meta:{
|
|
title:"Структура"
|
|
}
|
|
},
|
|
{
|
|
path: '/providing',
|
|
name: 'ProvidingActivitiesPage',
|
|
component: () => import('@/views/ProvidingActivitiesPage.vue'),
|
|
},
|
|
{
|
|
path: '/faq',
|
|
name: 'FAQPage',
|
|
component: () => import('@/views/FAQPage.vue'),
|
|
|
|
},
|
|
{
|
|
path: '/feedback',
|
|
name: 'FeedbackPage',
|
|
component: () => import('@/views/FeedbackPage.vue'),
|
|
},
|
|
{
|
|
path: '/labor',
|
|
name: 'LaborProtection',
|
|
component: () => import('@/views/LaborProtection.vue'),
|
|
},
|
|
{
|
|
path: '/securyty',
|
|
name: 'SecurityPage',
|
|
component: () => import('@/views/SecurityPage.vue'),
|
|
},
|
|
{
|
|
path: '/inspection',
|
|
name: 'AboutInspectionPage',
|
|
component: () => import('@/views/AboutInspectionPage.vue'),
|
|
},
|
|
{
|
|
path: '/portal',
|
|
name: 'AboutPortalPage',
|
|
component: () => import('@/views/AboutPortalPage.vue'),
|
|
},
|
|
],
|
|
},
|
|
]
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(process.env.BASE_URL),
|
|
routes,
|
|
})
|
|
router.beforeEach((to,from, next)=>{
|
|
document.title = to.meta.title;
|
|
next()
|
|
})
|
|
|
|
export default router
|