Skip to content

Commit

Permalink
Adapt routes to suit vue-router v4
Browse files Browse the repository at this point in the history
  • Loading branch information
osbre committed Sep 11, 2024
1 parent 92a4cd4 commit 154637d
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions resources/js/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,28 @@ export default [
{
path: '/monitoring',
name: 'monitoring',
component: monitoring,
},

{
path: '/monitoring/:tag',
component: monitoringTag,
children: [
{
path: 'jobs',
name: 'monitoring-jobs',
component: monitoringTagJobs,
props: { type: 'jobs' },
path: '',
component: monitoring,
},
{
path: 'failed',
name: 'monitoring-failed',
component: monitoringTagJobs,
props: { type: 'failed' },
path: ':tag',
component: monitoringTag,
children: [
{
path: 'jobs',
name: 'monitoring-jobs',
component: monitoringTagJobs,
props: { type: 'jobs' },
},
{
path: 'failed',
name: 'monitoring-failed',
component: monitoringTagJobs,
props: { type: 'failed' },
},
],
},
],
},
Expand Down

0 comments on commit 154637d

Please sign in to comment.