.
This commit is contained in:
parent
088f3feede
commit
90c90b7236
@ -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) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user