v2
This commit is contained in:
@@ -21,7 +21,8 @@ const routes: RouteRecordRaw[] = [
|
||||
{
|
||||
name: 'projects',
|
||||
path: '/projects',
|
||||
component: () => import('pages/ProjectsPage.vue')
|
||||
component: () => import('pages/ProjectsPage.vue'),
|
||||
meta: { hideBackButton: true }
|
||||
},
|
||||
{
|
||||
name: 'project_add',
|
||||
@@ -55,48 +56,81 @@ const routes: RouteRecordRaw[] = [
|
||||
{
|
||||
name: 'chats',
|
||||
path: 'chats',
|
||||
component: () => import('../components/admin/project-page/ProjectPageChats.vue')
|
||||
component: () => import('components/admin/project-page/ProjectPageChats.vue'),
|
||||
meta: { backRoute: '/projects' }
|
||||
},
|
||||
{
|
||||
name: 'persons',
|
||||
path: 'persons',
|
||||
component: () => import('../components/admin/project-page/ProjectPagePersons.vue')
|
||||
component: () => import('components/admin/project-page/ProjectPagePersons.vue'),
|
||||
meta: { backRoute: '/projects' }
|
||||
},
|
||||
{
|
||||
name: 'companies',
|
||||
path: 'companies',
|
||||
component: () => import('../components/admin/project-page/ProjectPageCompanies.vue')
|
||||
component: () => import('components/admin/project-page/ProjectPageCompanies.vue'),
|
||||
meta: { backRoute: '/projects' }
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/account',
|
||||
name: 'company_info',
|
||||
path: '/project/:id(\\d+)/company/:companyId',
|
||||
component: () => import('pages/CompanyInfoPage.vue'),
|
||||
beforeEnter: setProjectBeforeEnter
|
||||
},
|
||||
{
|
||||
name: 'person_info',
|
||||
path: '/project/:id(\\d+)/person/:personId',
|
||||
component: () => import('pages/PersonInfoPage.vue'),
|
||||
beforeEnter: setProjectBeforeEnter
|
||||
},
|
||||
|
||||
{
|
||||
name: 'account',
|
||||
path: '/account',
|
||||
component: () => import('pages/AccountPage.vue')
|
||||
},
|
||||
{
|
||||
name: 'create_account',
|
||||
path: '/create-account',
|
||||
component: () => import('pages/CreateAccountPage.vue')
|
||||
},
|
||||
|
||||
{
|
||||
path: '/login',
|
||||
name: 'login',
|
||||
path: '/login',
|
||||
component: () => import('pages/LoginPage.vue')
|
||||
},
|
||||
|
||||
{
|
||||
path: '/recovery-password',
|
||||
name: 'recovery_password',
|
||||
path: '/recovery-password',
|
||||
component: () => import('pages/ForgotPasswordPage.vue')
|
||||
},
|
||||
|
||||
{
|
||||
path: '/create-company',
|
||||
name: 'create_company',
|
||||
name: 'add_company',
|
||||
path: '/add-company',
|
||||
component: () => import('pages/CreateCompanyPage.vue')
|
||||
},
|
||||
|
||||
{
|
||||
path: '/person-info',
|
||||
name: 'person_info',
|
||||
path: '/person-info',
|
||||
component: () => import('pages/PersonInfoPage.vue')
|
||||
},
|
||||
|
||||
{
|
||||
name: 'settings',
|
||||
path: '/settings',
|
||||
component: () => import('pages/SettingsPage.vue')
|
||||
},
|
||||
|
||||
{
|
||||
name: 'terms',
|
||||
path: '/terms-of-use',
|
||||
component: () => import('pages/TermsPage.vue')
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user