refactor: Change the way data is sent
This commit is contained in:
parent
3727627717
commit
31f0aa3120
3 changed files with 12 additions and 7 deletions
|
|
@ -2319,8 +2319,8 @@ const emptyCreateDialog = ref(false);
|
|||
}
|
||||
"
|
||||
@send-ocr="
|
||||
async (_, file) => {
|
||||
if (file) await ocrStore.sendOcr({ file });
|
||||
async (group, file) => {
|
||||
if (file) await ocrStore.sendOcr({ file, category: group });
|
||||
employeeFormState.ocr = false;
|
||||
}
|
||||
"
|
||||
|
|
@ -3325,8 +3325,9 @@ const emptyCreateDialog = ref(false);
|
|||
}
|
||||
"
|
||||
@send-ocr="
|
||||
async (_, file) => {
|
||||
if (file) await ocrStore.sendOcr({ file });
|
||||
async (group, file) => {
|
||||
if (file)
|
||||
await ocrStore.sendOcr({ file, category: group });
|
||||
employeeFormState.ocr = false;
|
||||
}
|
||||
"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue