Files
mixtape/zero.Backoffice.UI/old_app/pages/spaces/routes.js
T

39 lines
848 B
JavaScript
Raw Normal View History

2020-10-16 14:02:10 +02:00
const alias = __zero.alias.sections.spaces;
const section = __zero.sections.find(x => x.alias === alias);
2020-10-16 14:02:10 +02:00
export default section ? [
{
name: section.alias,
path: section.url,
component: () => import('./spaces.vue'),
2020-08-31 14:33:31 +02:00
meta: {
2020-10-16 14:02:10 +02:00
name: section.name,
alias: section.alias,
section: section
},
children: [
{
name: 'space-item',
path: ':alias/edit/:id',
props: true,
component: () => import('./spaces.vue')
2020-10-16 14:02:10 +02:00
},
{
name: 'space',
path: ':alias',
props: true,
component: () => import('./spaces.vue')
2020-10-16 14:02:10 +02:00
},
{
name: 'space-create',
path: ':alias/create/:scope?',
props: true,
component: () => import('./spaces.vue'),
2020-10-16 14:02:10 +02:00
meta: {
create: true
}
}
]
}
] : [];