算法广场

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