added routes and pages for game lobby and game
This commit is contained in:
5
src/pages/create/[id].vue
Normal file
5
src/pages/create/[id].vue
Normal file
@@ -0,0 +1,5 @@
|
||||
<template>Lobby {{ useRoute().params.id }}</template>
|
||||
|
||||
<script lang="ts" setup></script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
5
src/pages/game/[id].vue
Normal file
5
src/pages/game/[id].vue
Normal file
@@ -0,0 +1,5 @@
|
||||
<template>Game {{ useRoute().params.id }}</template>
|
||||
|
||||
<script lang="ts" setup></script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
2
src/typed-router.d.ts
vendored
2
src/typed-router.d.ts
vendored
@@ -19,5 +19,7 @@ declare module 'vue-router/auto-routes' {
|
||||
*/
|
||||
export interface RouteNamedMap {
|
||||
'/': RouteRecordInfo<'/', '/', Record<never, never>, Record<never, never>>,
|
||||
'/create/[id]': RouteRecordInfo<'/create/[id]', '/create/:id', { id: ParamValue<true> }, { id: ParamValue<false> }>,
|
||||
'/game/[id]': RouteRecordInfo<'/game/[id]', '/game/:id', { id: ParamValue<true> }, { id: ParamValue<false> }>,
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user