Skip to content

Commit 0bcf14e

Browse files
committed
🐛 [fix] : 목록에서 회원 프로필 사진 미표시 오류 수정
1 parent 4555f34 commit 0bcf14e

File tree

7 files changed

+17
-19
lines changed

7 files changed

+17
-19
lines changed

src/components/lists/ListCardTab.vue

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
class="flex gap-2 items-center"
44
:style="{ width: width ? `${width}px` : '' }"
55
:class="width ? 'shrink-0' : 'grow'">
6-
<div
7-
v-if="profileImg"
8-
class="w-6 h-6 rounded-full overflow-hidden">
9-
<img :src="profileImg" />
10-
</div>
6+
<ImageContainer
7+
v-if="profileImg !== undefined"
8+
:size="24"
9+
:url="profileImg" />
1110
<TaskStatus
1211
v-if="isStatus"
1312
:status="content as Status" />
@@ -23,9 +22,8 @@
2322
<script setup lang="ts">
2423
import type { ListCardProps, Status } from '@/types/common'
2524
import TaskStatus from '../common/TaskStatus.vue'
25+
import ImageContainer from '../common/ImageContainer.vue'
2626
2727
const { content, width, isTextXs, profileImg, isStatus, isStatusCode, isTextBody } =
2828
defineProps<ListCardProps>()
2929
</script>
30-
31-
<style scoped></style>

src/components/my-request/MyRequestListCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const myRequestTabList: ListCardProps[] = [
4747
{ content: info.mainCategoryName, width: 80 },
4848
{ content: info.categoryName, width: 80 },
4949
{ content: info.title },
50-
{ content: info.processorName, width: 120, profileImg: info.processorImg },
50+
{ content: info.processorName, width: 120, profileImg: info.processorImg || '' },
5151
{ content: info.taskStatus, width: 80, isStatus: true },
5252
{ content: info.finishedAt ? formatDate(info.finishedAt) : '', width: 80 }
5353
]

src/components/my-task/MyTaskListCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const myRequestTabList: ListCardProps[] = [
4646
{ content: info.mainCategoryName, width: 80 },
4747
{ content: info.categoryName, width: 80 },
4848
{ content: info.title },
49-
{ content: info.requesterName, width: 120, profileImg: info.requesterImg },
49+
{ content: info.requesterName, width: 120, profileImg: info.requesterUrl || '' },
5050
{ content: info.taskStatus, width: 80, isStatus: true },
5151
{ content: info.finishedAt ? formatDate(info.finishedAt) : '', width: 80 }
5252
]

src/components/request-history/RequestHistoryListCard.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ const myRequestTabList: ListCardProps[] = [
4646
{ content: info.mainCategoryName, width: 80 },
4747
{ content: info.categoryName, width: 80 },
4848
{ content: info.title },
49-
{ content: info.requesterName, width: 120, profileImg: info.requesterImg },
50-
{ content: info.processorName, width: 120, profileImg: info.processorImg },
49+
{ content: info.requesterName, width: 120, profileImg: info.requesterUrl || '' },
50+
{ content: info.processorName, width: 120, profileImg: info.processorUrl || '' },
5151
{ content: info.taskStatus, width: 80, isStatus: true },
5252
{ content: info.finishedAt ? formatDate(info.finishedAt) : '', width: 80 }
5353
]

src/components/requested/RequestedListCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const requestedTabList: ListCardProps[] = [
7373
{ content: info.mainCategoryName, width: 80 },
7474
{ content: info.categoryName, width: 80 },
7575
{ content: info.title },
76-
{ content: info.requesterName, width: 120, profileImg: info.requesterImg }
76+
{ content: info.requesterName, width: 120, profileImg: info.requesterUrl || '' }
7777
]
7878
const router = useRouter()
7979
const queryClient = useQueryClient()

src/types/manager.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export interface RequestedListData {
77
mainCategoryName: string
88
categoryName: string
99
title: string
10-
requesterImg: string
10+
requesterUrl?: string
1111
requesterName: string
1212
}
1313

@@ -18,9 +18,9 @@ export interface RequestHistoryListData {
1818
mainCategoryName: string
1919
categoryName: string
2020
title: string
21-
requesterImg: string
21+
requesterUrl?: string
2222
requesterName: string
23-
processorImg?: string
23+
processorUrl?: string
2424
processorName?: string
2525
taskStatus: string
2626
finishedAt?: string
@@ -57,7 +57,7 @@ export interface MyTaskListData {
5757
mainCategoryName: string
5858
categoryName: string
5959
title: string
60-
requesterImg: string
60+
requesterUrl?: string
6161
requesterName: string
6262
taskStatus: string
6363
finishedAt?: string

src/views/PwChangeView.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</ModalView>
1717
<TitleContainer
1818
v-if="!isConfirmed"
19-
:title="'비밀번호\n재설정'"
19+
:title="'비밀번호\n확인'"
2020
:content="'비밀번호 재설정을 위해\n현재 비밀번호를 입력해주세요'" />
2121
<TitleContainer
2222
v-else
@@ -73,7 +73,7 @@
7373
<p
7474
v-show="isInvalid"
7575
class="absolute text-red-1 text-xs font-semibold mt-1">
76-
대문자, 소문자, 숫자, 특수문자 포함 8자-20자 입력해주세요
76+
대문자, 소문자, 숫자, 특수문자 포함 8자-20자로 입력해주세요
7777
</p>
7878
</div>
7979
<div class="relative">
@@ -92,7 +92,7 @@
9292
<p
9393
v-show="isDifferent"
9494
class="absolute text-red-1 text-xs font-semibold mt-1">
95-
비밀번호가 일치하지 않아요
95+
비밀번호가 일치하지 않습니다
9696
</p>
9797
</div>
9898
<div class="flex flex-col gap-2 items-center">

0 commit comments

Comments
 (0)