diff --git a/src/components/board/BoardComment.vue b/src/components/board/BoardComment.vue
index ded58dc..205d5a6 100644
--- a/src/components/board/BoardComment.vue
+++ b/src/components/board/BoardComment.vue
@@ -11,35 +11,29 @@
:isLike="!isLike"
:isCommentPassword="isCommentPassword"
:isCommentProfile="true"
- @editClick="aaaa"
+ @editClick="handleEditClick"
@deleteClick="$emit('deleteClick', comment)"
@updateReaction="handleUpdateReaction"
- />
-
-
+ />
-
{{ profileName }}
@@ -81,7 +82,7 @@ const props = defineProps({
isCommentProfile: Boolean, // 현재 컴포넌트가 댓글용인지 여부
date: {
type: String,
- required: true,
+ required: '',
},
views: {
type: Number,
@@ -117,6 +118,10 @@ const handleUpdateReaction = (reactionData) => {
});
};
+const getProfileImage = (profilePath) => {
+ return profilePath && profilePath.trim() ? `${baseUrl}upload/img/profile/${profilePath}` : defaultProfile;
+};
+
diff --git a/src/components/button/BoardRecommendBtn.vue b/src/components/button/BoardRecommendBtn.vue
index e297eb7..8ffa805 100644
--- a/src/components/button/BoardRecommendBtn.vue
+++ b/src/components/button/BoardRecommendBtn.vue
@@ -13,7 +13,7 @@ import { ref, computed } from 'vue';
const props = defineProps({
comment: {
type: Object,
- required: true,
+ default: () => ({}),
},
likeClicked : {
type : Boolean,
@@ -36,7 +36,7 @@ const props = defineProps({
required: true,
},
commentId: {
- type: Number,
+ type: [Number, null],
default: null,
},
likeCount: {
diff --git a/src/views/board/BoardList.vue b/src/views/board/BoardList.vue
index 095e5e3..3ac8ef0 100644
--- a/src/views/board/BoardList.vue
+++ b/src/views/board/BoardList.vue
@@ -195,10 +195,7 @@ const fetchGeneralPosts = async (page = 1) => {
});
if (data?.data) {
- // console.log(data)
- const totalPosts = data.data.total; // 전체 게시물 개수 받아오기
-
- // console.log('📌 API 응답 데이터:', data.data);
+ const totalPosts = data.data.total;
generalList.value = data.data.list.map((post, index) => ({
realId: post.id,
diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue
index 3edd703..08411aa 100644
--- a/src/views/board/BoardView.vue
+++ b/src/views/board/BoardView.vue
@@ -27,6 +27,7 @@
class="form-control"
v-model="password"
placeholder="비밀번호 입력"
+ @input="password = password.replace(/\s/g, '')"
/>
@@ -76,13 +77,7 @@
@updateReaction="handleUpdateReaction"
/>
-
-
-
-
-
+
@@ -106,9 +100,11 @@