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 @@ + + + + +