From 9b3ddd291ef01065d470b0660642829d47e23075 Mon Sep 17 00:00:00 2001 From: grimhilt Date: Mon, 20 Mar 2023 15:00:15 +0100 Subject: [PATCH] basic routing for roomview --- front/src/App.vue | 6 +----- front/src/router/index.js | 6 ++++++ front/src/views/room/RoomView.vue | 28 +++++++++++++++----------- front/src/views/sidebar/rooms/Room.vue | 8 +++++++- 4 files changed, 30 insertions(+), 18 deletions(-) diff --git a/front/src/App.vue b/front/src/App.vue index 1922974..f264895 100644 --- a/front/src/App.vue +++ b/front/src/App.vue @@ -4,22 +4,18 @@ import { RouterView } from "vue-router"; diff --git a/front/src/router/index.js b/front/src/router/index.js index 83b8288..26bf887 100644 --- a/front/src/router/index.js +++ b/front/src/router/index.js @@ -1,5 +1,6 @@ import { createRouter, createWebHistory } from "vue-router"; import Home from "../views/Home"; +import RoomView from "../views/room/RoomView"; const routes = [ { @@ -16,6 +17,11 @@ const routes = [ component: () => import(/* webpackChunkName: "about" */ "../views/About.vue"), }, + { + path: "/:id", + name: "test", + component: RoomView + } ]; const router = createRouter({ diff --git a/front/src/views/room/RoomView.vue b/front/src/views/room/RoomView.vue index 027d63d..8341174 100644 --- a/front/src/views/room/RoomView.vue +++ b/front/src/views/room/RoomView.vue @@ -1,26 +1,30 @@ + + - -