라우터 변경 페이지 변경
This commit is contained in:
parent
aea8f19d55
commit
c77af5ca2a
@ -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",
|
||||
|
||||
15
src/views/board/BoardView.vue
Normal file
15
src/views/board/BoardView.vue
Normal file
@ -0,0 +1,15 @@
|
||||
<template>
|
||||
<div class="container-xxl flex-grow-1 container-p-y">
|
||||
<div class="row">
|
||||
board
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
15
src/views/board/BoardWrite.vue
Normal file
15
src/views/board/BoardWrite.vue
Normal file
@ -0,0 +1,15 @@
|
||||
<template>
|
||||
<div class="container-xxl flex-grow-1 container-p-y">
|
||||
<div class="row">
|
||||
board
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
Loading…
Reference in New Issue
Block a user