fix report โครงสร้าง ลูกจ้าง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-11-20 17:21:35 +07:00
parent 409b58c82c
commit 344ecd4424
4 changed files with 28 additions and 23 deletions

View file

@ -36,12 +36,12 @@ const modalPersonal = ref<boolean>(false);
const profileId = ref<string | null>("");
function fetchDataProfile(data: DataProfile) {
async function fetchDataProfile(data: DataProfile) {
if (data.profileId) {
fetchCheckAvatar(data.profileId);
}
profile.id = data.profileId;
profile.fullName = `${data.prefix ?? ""}${data.firstName ?? ""} ${
profile.fullName = `${data.rank ? data.rank : data.prefix ?? ""}${data.firstName ?? ""} ${
data.lastName ?? ""
} `;