From cb67307a6235dc5276623fb9346f4ea8355773ef Mon Sep 17 00:00:00 2001 From: khj0414 Date: Fri, 7 Feb 2025 14:58:14 +0900 Subject: [PATCH] =?UTF-8?q?user=EC=88=98=EC=A0=95=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/wordDict/DictCard.vue | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/src/components/wordDict/DictCard.vue b/src/components/wordDict/DictCard.vue index bf6eb05..80f3385 100644 --- a/src/components/wordDict/DictCard.vue +++ b/src/components/wordDict/DictCard.vue @@ -11,7 +11,12 @@
- 최초 작성자 + 최초 작성자

{{ formatDate(item.author.createdAt) }}

@@ -21,7 +26,12 @@
- 최근 작성자 + 최근 작성자

{{ formatDate(item.lastEditor.updatedAt) }}

@@ -42,7 +52,7 @@ const props = defineProps({ required: true, }, }); - +console.log('item',props.item) const baseUrl = $api.defaults.baseURL.replace(/api\/$/, ''); // 날짜 const formatDate = (dateString) => new Date(dateString).toLocaleString(); @@ -50,3 +60,11 @@ const formatDate = (dateString) => new Date(dateString).toLocaleString(); const getProfileImage = (imagePath) => imagePath ? `${baseUrl}upload/img/profile/${imagePath}` : '/img/avatars/default-Profile.jpg'; + +