basic routing for roomview

This commit is contained in:
grimhilt
2023-03-20 15:00:15 +01:00
parent 47b8c54122
commit 0f87bdc715
4 changed files with 30 additions and 18 deletions

View File

@@ -1,26 +1,30 @@
<script setup>
import { useRoute } from "vue-router"
import { onBeforeMount } from "vue"
import Header from './Header.vue'
const route = useRoute();
onBeforeMount(() => {
// get data
});
const { id } = route.params;
</script>
<template>
<div>
<Header></Header>
<div>
Room
is thread
<b>{{ id }}</b>
</div>
</div>
</template>
<script>
import Header from './Header.vue'
export default {
name: 'RoomView',
components: {
Header
}
}
</script>
<style scoped>
div {
background-color: #1D1D23;