diff --git a/front/src/views/capacitySquare/components/algorithm.vue b/front/src/views/capacitySquare/components/algorithm.vue index c83f48e8..b947db0a 100644 --- a/front/src/views/capacitySquare/components/algorithm.vue +++ b/front/src/views/capacitySquare/components/algorithm.vue @@ -56,17 +56,11 @@ pageWithAttrsFunction() //图片显示 const algorithmCardPhoto = (List) => { - let obj = List.filter((item) => item.attrType === '图层缩略图')[0] - if (obj) { - List.map((item) => { - if (item.attrType === '图层缩略图') { - url.value = item.attrValue - } - }) - } else { - url.value = '@/assets/capacitySquare/algorithm-photo.jpg' + let obj = List.filter((item) => item.attrType === '应用场景')[0] + if (obj && obj.attrValue != '') { + obj = JSON.parse(obj.attrValue)[0].img } - return url.value + return obj || '' } //跳转详情页 const detailFunction = (id) => {