refactor: add deleteAttachment

This commit is contained in:
Net 2024-08-28 17:36:55 +07:00 committed by Methapon Metanipat
parent 3529f81352
commit d839f41b24

View file

@ -206,7 +206,16 @@ defineProps<{
statusOcr = false;
}
"
@save="(group: any, file: any) => {}"
@delete-file="
(filename) => {
if (!item.id) return;
customerFormStore.deleteAttachment(
{ branchId: item.id, customerId: item.customerId },
filename,
);
}
"
>
<template #form="{ mode }">
<FormCitizen