无图片的付款单不报错,正常显示没图片的记录

release
赵鹏 1 year ago
parent 8e5667e9d8
commit 8265514bc8

@ -55,19 +55,18 @@ function Paid(){
function showPIc(text,record) { function showPIc(text,record) {
let strPic = record.fl_pic; let strPic = record.fl_pic;
//console.log(JSON.parse(strPic)); //console.log(JSON.parse(strPic));
try { if (isNotEmpty(strPic)){
return ( return (
JSON.parse(strPic).map((item,index) => { JSON.parse(strPic).map((item,index) => {
return <Image key={index} width={90} src={item.url} />; return <Image key={index} width={90} src={item.url} />;
}) })
); );
}else{
} catch (error) {
return ""; return "";
} }
} }

Loading…
Cancel
Save