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 = {