diff --git a/src/components/CardProfile.vue b/src/components/CardProfile.vue index fc810626d..d6b9fe4cf 100644 --- a/src/components/CardProfile.vue +++ b/src/components/CardProfile.vue @@ -39,6 +39,8 @@ const profileId = ref(""); async function fetchDataProfile(data: DataProfile) { if (data.profileId) { fetchCheckAvatar(data.profileId); + } else { + profile.avatar = data?.avatar ? data.avatar : ""; } profile.id = data.profileId; profile.fullName = `${data.prefix ?? ""}${data.firstName ?? ""} ${ diff --git a/src/modules/05_placement/components/PersonalList/Table.vue b/src/modules/05_placement/components/PersonalList/Table.vue index c8fba60ce..dd467f1e0 100644 --- a/src/modules/05_placement/components/PersonalList/Table.vue +++ b/src/modules/05_placement/components/PersonalList/Table.vue @@ -313,7 +313,7 @@ async function getTable() { res.data.result.map((data: any) => { const rowData = { personalId: data.personalId, - avatar: avatar, + avatar: data.avatar ? data.avatar : avatar, name: data.fullName, fullName: data.fullName + " " + data.idCard, idCard: data.idCard, diff --git a/src/modules/05_placement/interface/index/Main.ts b/src/modules/05_placement/interface/index/Main.ts index 74ab35f68..df580772e 100644 --- a/src/modules/05_placement/interface/index/Main.ts +++ b/src/modules/05_placement/interface/index/Main.ts @@ -224,6 +224,7 @@ interface Assign { } interface DataProfile { + avatar?: string; child1: string | null; child1ShortName: string | null; child2: string | null;