fix ไฟล

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-10-28 14:46:46 +07:00
parent 9d4eefd3a6
commit 34adab1639

View file

@ -561,7 +561,7 @@ function getImage() {
} }
}) })
.catch((e) => { .catch((e) => {
messageError($q, e); // messageError($q, e);
}) })
.finally(() => { .finally(() => {
hideLoader(); hideLoader();
@ -572,8 +572,8 @@ function getImage() {
* งกนเรยกขอมลร * งกนเรยกขอมลร
* @param dataList * @param dataList
*/ */
function getImg(dataList: any) { async function getImg(dataList: any) {
http await http
.get(config.API.fileByPath(`${dataList.avatar}/${dataList.avatarName}`)) .get(config.API.fileByPath(`${dataList.avatar}/${dataList.avatarName}`))
.then((res) => { .then((res) => {
const data = res.data; const data = res.data;
@ -585,7 +585,7 @@ function getImg(dataList: any) {
images.value = [...images.value, newData]; images.value = [...images.value, newData];
}) })
.catch((e) => { .catch((e) => {
messageError($q, e); // messageError($q, e);
}); });
} }