1
This commit is contained in:
commit
8c95bbf909
126 files changed
+16922
No files matched your search
@@ -0,0 +1,74 @@
|
||||
// Composables
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: '/',
|
||||
component: () => import('@/layouts/default/DefaultPortal.vue'),
|
||||
children: [
|
||||
{
|
||||
path: '/home',
|
||||
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
|
||||
Reference in new issue
Block a user