Skip to content

Commit

Permalink
일부 화면의 category 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yhlee002 committed Jul 18, 2024
1 parent ef3d48c commit 41aae35
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
9 changes: 0 additions & 9 deletions src/components/board/BoardComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,6 @@ function writeNewPost() {
</select>
</div>

<!-- 임시 -->
<div>
<ul>
<li v-for="item in boardStore.boardList" :key="item.id">
{{item.title}}
</li>
</ul>
</div>

<ListComponent category="boards" :list="boardStore.listItems" :recommended="true"
:key="renderCnt"></ListComponent>
<Pagenation category="boards" :pages="boardStore.totalPages" :page="boardStore.currentPage"></Pagenation>
Expand Down
4 changes: 2 additions & 2 deletions src/components/board/BoardItemComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ async function go(path) {
<h2 id="boardTitle" v-text="board.title"></h2>
</div>

<!-- <div v-if="props.category === 'board'">-->
<!-- <div v-if="props.category === 'boards'">-->
<!-- <p>영화</p>-->
<!-- <div>-->
<!-- <p></p>-->
Expand Down Expand Up @@ -180,7 +180,7 @@ async function go(path) {
</div>

<!-- 댓글 -->
<div v-if="category === 'board'" style="display: flex; flex-direction: column;">
<div v-if="category === 'boards'" style="display: flex; flex-direction: column;">
<p id="commentsBlockTitle">댓글</p>
<div class="comment-write-form">
<div class="comment-input-box">
Expand Down
2 changes: 1 addition & 1 deletion src/components/board/EditorComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const modalStore = useModalStore();
const props = defineProps(['id', 'category']);
const category = props.category;
const store = category === 'notice' ? noticeStore : category === 'board' ? boardStore : null;
const store = category === 'notices' ? noticeStore : category === 'boards' ? boardStore : null;
const board = ref({
id: '',
Expand Down

0 comments on commit 41aae35

Please sign in to comment.