From 1ad2d2e6fde3e3798585ae13c27f4c9b25b3b522 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 2 Jul 2025 09:30:46 +0700 Subject: [PATCH] fix bug img ==> KIP --- src/modules/08_KPI/views/form.vue | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/modules/08_KPI/views/form.vue b/src/modules/08_KPI/views/form.vue index 4c44598..5ee322d 100644 --- a/src/modules/08_KPI/views/form.vue +++ b/src/modules/08_KPI/views/form.vue @@ -64,6 +64,8 @@ const evaluatorId = ref(null); // ตัวแปรเก็บ id ผู const commanderId = ref(null); // ตัวแปรเก็บ id ผู้บังคับบัญชา const commanderHighId = ref(null); // ตัวแปรเก็บ id ผู้บังคับบัญชาเหนือไปอีกขั้น +const imgProfile = ref(""); // ตัวแปรเก็บรูปโปรไฟล์ + const formProfile = reactive({ fullName: "", position: "", @@ -112,6 +114,7 @@ async function fetchProfile(id: string, avatarName: string) { .get(config.API.fileByFile("ทะเบียนประวัติ", "โปรไฟล์", id, avatarName)) .then(async (res) => { store.dataEvaluation.avartar = res.data.downloadUrl; + imgProfile.value = res.data.downloadUrl; }); } @@ -684,10 +687,7 @@ onMounted(async () => {
- +
@@ -697,10 +697,7 @@ onMounted(async () => { style="left: 2%; top: 50%; transform: translateY(-50%)" > - +