diff --git a/src/router/index.ts b/src/router/index.ts index 8ff5b62..49ee2de 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -8,8 +8,13 @@ const routes: RouteConfig[] = [ { path: '/', name: 'Home', + component: Home + }, + { + path: '/play', + name: 'Home', component: Home, - props: (route) => ({ play: route.query.play }) + props: { play: true } } ] diff --git a/vue.config.js b/vue.config.js index 807718d..dcea1d0 100644 --- a/vue.config.js +++ b/vue.config.js @@ -16,7 +16,7 @@ module.exports = { name: 'Start a session', short_name: 'Start', description: 'Start a pair programming session', - url: '/?play=true' + url: '/play' } ], icons: [