익명 수정

This commit is contained in:
kimdaae328 2025-02-21 14:18:08 +09:00
parent 4076507fb7
commit 8d6ae54a9b
2 changed files with 4 additions and 4 deletions

View File

@ -61,7 +61,7 @@ const props = defineProps({
}, },
profileName: { profileName: {
type: String, type: String,
default: null, default: '익명',
}, },
unknown: { unknown: {
type: Boolean, type: Boolean,

View File

@ -149,7 +149,7 @@ const comments = ref([]);
const route = useRoute(); const route = useRoute();
const router = useRouter(); const router = useRouter();
const currentBoardId = ref(Number(route.params.id)); const currentBoardId = ref(Number(route.params.id));
const unknown = computed(() => profileName.value === null); const unknown = computed(() => profileName.value === '익명');
const currentUserId = ref('김자바'); // id const currentUserId = ref('김자바'); // id
const authorId = ref(null); // id const authorId = ref(null); // id
@ -190,7 +190,7 @@ const fetchBoardDetails = async () => {
// API // API
// const boardDetail = data.boardDetail || {}; // const boardDetail = data.boardDetail || {};
profileName.value = data.author || null; profileName.value = data.author || '익명';
// //
// profileName.value = 'null; // profileName.value = 'null;
@ -277,7 +277,7 @@ const fetchComments = async (page = 1) => {
commentId: comment.LOCCMTSEQ, // ID commentId: comment.LOCCMTSEQ, // ID
boardId: comment.LOCBRDSEQ, boardId: comment.LOCBRDSEQ,
parentId: comment.LOCCMTPNT, // ID parentId: comment.LOCCMTPNT, // ID
author: comment.author || null, author: comment.author || '익명',
content: comment.LOCCMTRPY, content: comment.LOCCMTRPY,
likeCount: comment.likeCount || 0, likeCount: comment.likeCount || 0,
dislikeCount: comment.dislikeCount || 0, dislikeCount: comment.dislikeCount || 0,