refactor: Change the way data is sent

This commit is contained in:
Net 2024-08-29 14:55:57 +07:00
parent 3727627717
commit 31f0aa3120
3 changed files with 12 additions and 7 deletions

View file

@ -213,8 +213,11 @@ defineProps<{
)
"
@send-ocr="
async (v: any, f: any) => {
const res = await ocrStore.sendOcr({ file: f });
async (group: any, file: any) => {
const res = await ocrStore.sendOcr({
file: file,
category: group,
});
if (res) {
const map = res.fields.reduce<Record<string, string>>(