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); }); }