Skip to content

Commit

Permalink
refactor: vuetify 이전으로 수정 (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
birdieHyun authored Nov 15, 2023
1 parent 43b9f37 commit c777ba4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/front-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy to CloudFront

on:
push:
branches: [ "main" ]
branches: [ "dev" ]


jobs:
Expand Down
5 changes: 5 additions & 0 deletions src/components/board/BoardDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
<p v-if="boardData" class="detail-content"> {{ boardData.content }}</p>
</div>
<div> 댓글 창 - 구현 예정</div>
<!-- <ul v-if="boardData.replies">-->
<!-- <li v-for="reply in boardData.replies.replies" :key="reply.id">-->
<!-- {{ reply.writer }}: {{ reply.content }} at {{ reply.createdAt }}-->
<!-- </li>-->
<!-- </ul>-->

</template>

Expand Down
4 changes: 2 additions & 2 deletions src/components/board/BoardHome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ export default {
},
methods: {
// 게시글 세부 정보 페이지로 이동하는 함수
goToDetail(postId) {
this.$router.push({name: 'BoardDetail', params: {id: postId}});
goToDetail(boardId) {
this.$router.push({name: 'BoardDetail', params: {boardId: boardId}});
},
async fetchPosts(page) {
// 카테고리가 ALL이 아니라면 category 파라미터를 추가
Expand Down
2 changes: 1 addition & 1 deletion src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const routes = [
},
{
path: '/board/:boardId',
name: 'board detail',
name: 'BoardDetail',
component: BoardDetail
}
]
Expand Down

0 comments on commit c777ba4

Please sign in to comment.