fix vue-tsc

This commit is contained in:
2025-10-29 03:44:57 +01:00
parent 007bb4a0eb
commit 72d5fbb803
8 changed files with 13 additions and 98 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ export class ApiService {
formData.append('data', JSON.stringify(submissionData))
// Add files
files.forEach((file, index) => {
files.forEach((file) => {
formData.append('files', file)
})
+1 -2
View File
@@ -32,7 +32,7 @@ export class OpusMagnumOCRService {
this.worker = await createWorker('eng');
await this.worker.setParameters({
tessedit_ocr_engine_mode: '3',
tessedit_pageseg_mode: '7'
tessedit_pageseg_mode: 7 as any
});
}
@@ -85,7 +85,6 @@ export class OpusMagnumOCRService {
regionCtx.putImageData(imageData, 0, 0);
// Configure OCR based on content type
let config: any = {};
if (key === 'cost') {
// Cost field has digits + 'G' for gold (content type: 'digits_with_6')
await this.worker!.setParameters({