From 3d52e75cca813442b10a9f2d9d782a3c5f3e8abb Mon Sep 17 00:00:00 2001 From: lihui_ocr Date: Fri, 19 Apr 2024 10:03:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:location=E5=AD=97=E6=AE=B5=E5=8A=A0?= =?UTF-8?q?=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/task/content/Content.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/task/content/Content.vue b/src/views/task/content/Content.vue index fee342a..35ae621 100644 --- a/src/views/task/content/Content.vue +++ b/src/views/task/content/Content.vue @@ -419,9 +419,10 @@ async function getTableData() { fieldList.forEach((v) => { if (userFieldList.includes(v.name)) { let locationobj = { address: '' } - if (v.name == 'location') { + + if (v.name == 'location'&& taskDetailInfo.value.ocrPicture[v.name]!=null&& taskDetailInfo.value.ocrPicture[v.name]!="null") { locationobj = JSON.parse( - taskDetailInfo.value.ocrPicture ? taskDetailInfo.value.ocrPicture[v.name] : '{}', + taskDetailInfo.value.ocrPicture ? taskDetailInfo.value.ocrPicture[v.name] : {}, ) } const item = {