add optional header part for options & add biblio view with mode as component
This commit is contained in:
@@ -8,6 +8,23 @@ export default [
|
||||
component: Home
|
||||
},
|
||||
|
||||
{
|
||||
name: 'biblio',
|
||||
path: '/biblio',
|
||||
components: {
|
||||
default: () => import(/* webpackChunkName: "texts" */ '@/pages/Biblio'),
|
||||
options: () => import(/* webpackChunkName: "texts" */ '@/pages/_partials/TextOptions')
|
||||
},
|
||||
props: {
|
||||
default: ({ query }) => ({
|
||||
mode: query.mode || 'tree-map'
|
||||
}),
|
||||
options: ({ query }) => ({
|
||||
show: !('texts' in query)
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
name: 'notfound',
|
||||
path: '/404',
|
||||
|
||||
Reference in New Issue
Block a user