From 34adab163992739c34ad272074188f62bb28f834 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 28 Oct 2024 14:46:46 +0700 Subject: [PATCH] =?UTF-8?q?fix=20=E0=B9=84=E0=B8=9F=E0=B8=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/04_registryPerson/views/detailView.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/04_registryPerson/views/detailView.vue b/src/modules/04_registryPerson/views/detailView.vue index 81e27522c..3d919fba5 100644 --- a/src/modules/04_registryPerson/views/detailView.vue +++ b/src/modules/04_registryPerson/views/detailView.vue @@ -561,7 +561,7 @@ function getImage() { } }) .catch((e) => { - messageError($q, e); + // messageError($q, e); }) .finally(() => { hideLoader(); @@ -572,8 +572,8 @@ function getImage() { * ฟังก์ชันเรียกข้อมูลรูป * @param dataList */ -function getImg(dataList: any) { - http +async function getImg(dataList: any) { + await http .get(config.API.fileByPath(`${dataList.avatar}/${dataList.avatarName}`)) .then((res) => { const data = res.data; @@ -585,7 +585,7 @@ function getImg(dataList: any) { images.value = [...images.value, newData]; }) .catch((e) => { - messageError($q, e); + // messageError($q, e); }); }