完善评查详情
This commit is contained in:
@@ -102,6 +102,7 @@ export interface DocumentUI {
|
||||
isTest: boolean;
|
||||
updatedAt?: string;
|
||||
pageCount?: number;
|
||||
ocrResult?: unknown;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -175,7 +176,8 @@ async function convertToUIDocument(doc: Document): Promise<DocumentUI> {
|
||||
path: doc.path,
|
||||
isTest: doc.is_test_document,
|
||||
updatedAt: formatDate(doc.updated_at),
|
||||
pageCount: doc.ocr_result?.__meta?.page_count || 0
|
||||
pageCount: doc.ocr_result?.__meta?.page_count || 0,
|
||||
ocrResult: doc.ocr_result
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user