diff --git a/src/modules/04_registryPerson/views/detailView.vue b/src/modules/04_registryPerson/views/detailView.vue index 2187e6603..9f24833b2 100644 --- a/src/modules/04_registryPerson/views/detailView.vue +++ b/src/modules/04_registryPerson/views/detailView.vue @@ -695,7 +695,7 @@ function closeImage() { * ฟังก์ชันยืนยันการลบรูป * @param id รูปภาพ */ -function deletePhoto(id: string, isActive: boolean) { +function deletePhoto(id: string) { dialogRemove( $q, async () => { @@ -706,10 +706,6 @@ function deletePhoto(id: string, isActive: boolean) { .delete(config.API.orgProfileAvatarbyType(empType.value) + `/${id}`) .then(async () => { await getImage(); - if (isActive) { - activeImage.value = null; - await fetchDataPersonal(); - } }) .catch((e) => { messageError($q, e); @@ -1219,16 +1215,13 @@ onMounted(async () => { icon="delete" unelevated dense - @click="deletePhoto(n.id, n.isActive)" + @click="deletePhoto(n.id)" class="bg-white" style="color: #ff8080" > ลบรูปภาพ -
- -
@@ -1236,12 +1229,7 @@ onMounted(async () => { - + เลือกรูปภาพ