From c77af5ca2a295c1510e06e9463b3ee6ff0653cb6 Mon Sep 17 00:00:00 2001 From: ckx6954 Date: Mon, 16 Dec 2024 13:39:11 +0900 Subject: [PATCH] =?UTF-8?q?=20=EB=9D=BC=EC=9A=B0=ED=84=B0=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 14 +++++++++++++- src/views/{TheBoard.vue => board/BoardList.vue} | 0 src/views/board/BoardView.vue | 15 +++++++++++++++ src/views/board/BoardWrite.vue | 15 +++++++++++++++ 4 files changed, 43 insertions(+), 1 deletion(-) rename src/views/{TheBoard.vue => board/BoardList.vue} (100%) create mode 100644 src/views/board/BoardView.vue create mode 100644 src/views/board/BoardWrite.vue diff --git a/src/router/index.js b/src/router/index.js index df6ed42..54d1fb5 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -11,7 +11,19 @@ const routes = [ { path: '/board', name : 'board', - component: () => import('@v/TheBoard.vue'), + component: () => import('@v/board/BoardList.vue'), + children : [ + { + path : "write", + name : 'write', + component : () => import('@v/board/BoardWrite.vue') + }, + { + path : "get/:id", + name : 'create', + component : () => import('@v/board/BoardView.vue') + } + ] }, // { // path: "/login", diff --git a/src/views/TheBoard.vue b/src/views/board/BoardList.vue similarity index 100% rename from src/views/TheBoard.vue rename to src/views/board/BoardList.vue diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue new file mode 100644 index 0000000..559346b --- /dev/null +++ b/src/views/board/BoardView.vue @@ -0,0 +1,15 @@ + + + + + diff --git a/src/views/board/BoardWrite.vue b/src/views/board/BoardWrite.vue new file mode 100644 index 0000000..559346b --- /dev/null +++ b/src/views/board/BoardWrite.vue @@ -0,0 +1,15 @@ + + + + +