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'; + +