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