This commit is contained in:
kimdaae328 2025-02-27 10:40:53 +09:00
parent 088f3feede
commit 90c90b7236

View File

@ -23,7 +23,7 @@
<div class="ms-auto text-end"> <div class="ms-auto text-end">
<!-- 수정, 삭제 버튼 --> <!-- 수정, 삭제 버튼 -->
<!-- <template v-if="isAuthor || showDetail"> --> <!-- <template v-if="isAuthor || showDetail"> -->
<template v-if="isCommentProfile ? isCommentAuthor : isAuthor"> <template v-if="unknown || isCommentAuthor || isAuthor">
<EditButton @click.stop="editClick" /> <EditButton @click.stop="editClick" />
<DeleteButton @click.stop="deleteClick" /> <DeleteButton @click.stop="deleteClick" />
</template> </template>
@ -62,7 +62,6 @@ const props = defineProps({
}, },
profileName: { profileName: {
type: String, type: String,
default: '익명',
default: '', default: '',
}, },
unknown: { unknown: {
@ -102,13 +101,12 @@ const emit = defineEmits(['updateReaction', 'editClick', 'deleteClick']);
// //
const editClick = () => { const editClick = () => {
console.log('클릭 확인') emit('editClick', { ...props.comment, unknown: props.unknown });
emit('editClick', props.unknown);
}; };
// //
const deleteClick = () => { const deleteClick = () => {
emit('deleteClick', props.unknown); emit('deleteClick', { ...props.comment, unknown: props.unknown });
}; };
const handleUpdateReaction = (reactionData) => { const handleUpdateReaction = (reactionData) => {