OCR识别修改

This commit is contained in:
cwchen 2025-11-24 10:23:27 +08:00
parent 164a6db7c7
commit 2e3c457952
7 changed files with 7 additions and 7 deletions

View File

@ -116,7 +116,7 @@ export default {
const response = file[0].response;
if (response.ocrResult && response.ocrResult.status_code === 200) {
// ocr
const chat_res = response.ocrResult.data?.chat_res;
const chat_res = response.ocrResult.data;
if (chat_res && typeof chat_res === 'object') {
// chat_res
Object.keys(chat_res).forEach(key => {

View File

@ -224,7 +224,7 @@ export default {
const response = file[0].response;
if (response.ocrResult && response.ocrResult.status_code === 200) {
// ocr
const chat_res = response.ocrResult.data?.chat_res;
const chat_res = response.ocrResult.data;
if (chat_res && typeof chat_res === 'object') {
// chat_res
Object.keys(chat_res).forEach(key => {

View File

@ -175,7 +175,7 @@ export default {
const response = file[0].response;
if (response.ocrResult && response.ocrResult.status_code === 200) {
// ocr
const chat_res = response.ocrResult.data?.chat_res;
const chat_res = response.ocrResult.data;
if (chat_res && typeof chat_res === 'object') {
// chat_res
Object.keys(chat_res).forEach(key => {

View File

@ -284,7 +284,7 @@ export default {
const response = file[0].response;
if (response.ocrResult && response.ocrResult.status_code === 200) {
// ocr
const chat_res = response.ocrResult.data?.chat_res;
const chat_res = response.ocrResult.data;
if (chat_res && typeof chat_res === 'object') {
// chat_res
Object.keys(chat_res).forEach(key => {

View File

@ -144,7 +144,7 @@ export default {
const response = file[0].response;
if (response.ocrResult && response.ocrResult.status_code === 200) {
// ocr
const chat_res = response.ocrResult.data?.chat_res;
const chat_res = response.ocrResult.data;
if (chat_res && typeof chat_res === 'object') {
// chat_res
Object.keys(chat_res).forEach(key => {

View File

@ -310,7 +310,7 @@ export default {
const response = file[0].response;
if (response.ocrResult && response.ocrResult.status_code === 200) {
// ocr
const chat_res = response.ocrResult.data?.chat_res;
const chat_res = response.ocrResult.data;
if (chat_res && typeof chat_res === 'object') {
// chat_res
Object.keys(chat_res).forEach(key => {

View File

@ -118,7 +118,7 @@ export default {
pageSize: 10,
enterpriseId: decryptWithSM4(this.$route.query.enterpriseId)
},
total: 100,
total: 0,
personnelList: [],
}