fix avatar รายละเอียดการรับโอน
This commit is contained in:
parent
e497160fd5
commit
e278e0588d
2 changed files with 3 additions and 0 deletions
|
|
@ -39,6 +39,8 @@ const profileId = ref<string | null>("");
|
||||||
async function fetchDataProfile(data: DataProfile) {
|
async function fetchDataProfile(data: DataProfile) {
|
||||||
if (data.profileId) {
|
if (data.profileId) {
|
||||||
fetchCheckAvatar(data.profileId);
|
fetchCheckAvatar(data.profileId);
|
||||||
|
} else {
|
||||||
|
profile.avatar = data?.avatar ? data.avatar : "";
|
||||||
}
|
}
|
||||||
profile.id = data.profileId;
|
profile.id = data.profileId;
|
||||||
profile.fullName = `${data.prefix ?? ""}${data.firstName ?? ""} ${
|
profile.fullName = `${data.prefix ?? ""}${data.firstName ?? ""} ${
|
||||||
|
|
|
||||||
|
|
@ -224,6 +224,7 @@ interface Assign {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface DataProfile {
|
interface DataProfile {
|
||||||
|
avatar?: string;
|
||||||
child1: string | null;
|
child1: string | null;
|
||||||
child1ShortName: string | null;
|
child1ShortName: string | null;
|
||||||
child2: string | null;
|
child2: string | null;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue