算法广场兼容
This commit is contained in:
parent
b61722857d
commit
5132d3ec60
|
@ -101,7 +101,10 @@ pageWithAttrsFunction()
|
|||
|
||||
//图片显示
|
||||
const algorithmCardPhoto = (item) => {
|
||||
let _arr = item.pic && JSON.parse(item.pic)
|
||||
let _arr = []
|
||||
if(item.pic && typeof item.pic == 'string') {
|
||||
_arr = JSON.parse(item.pic)
|
||||
}
|
||||
let _img = _arr[0] && _arr[0].img || ''
|
||||
return _img
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue