mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-13 08:41:46 +00:00
16 lines
413 B
JavaScript
16 lines
413 B
JavaScript
import path from 'path'
|
|
|
|
export const databaseRoutes = [
|
|
{
|
|
name: 'database-table',
|
|
path: '/database/:id/table/:tableId',
|
|
component: path.resolve(__dirname, 'pages/Table.vue'),
|
|
props(route) {
|
|
// @TODO figure out why the route param is empty on the server side.
|
|
const p = { ...route.params }
|
|
p.id = parseInt(p.id)
|
|
p.tableId = parseInt(p.tableId)
|
|
return p
|
|
}
|
|
}
|
|
]
|