算法广场

This commit is contained in:
851673013@qq.com 2022-08-10 14:54:45 +08:00
parent 2fe6aed0df
commit 6e2d146ca8
1 changed files with 4 additions and 10 deletions

View File

@ -56,17 +56,11 @@
pageWithAttrsFunction() pageWithAttrsFunction()
// //
const algorithmCardPhoto = (List) => { const algorithmCardPhoto = (List) => {
let obj = List.filter((item) => item.attrType === '图层缩略图')[0] let obj = List.filter((item) => item.attrType === '应用场景')[0]
if (obj) { if (obj && obj.attrValue != '') {
List.map((item) => { obj = JSON.parse(obj.attrValue)[0].img
if (item.attrType === '图层缩略图') {
url.value = item.attrValue
}
})
} else {
url.value = '@/assets/capacitySquare/algorithm-photo.jpg'
} }
return url.value return obj || ''
} }
// //
const detailFunction = (id) => { const detailFunction = (id) => {