已支付账单加个try防止json数据不合格。

release
赵鹏 1 year ago
parent ee57200b94
commit 8e5667e9d8

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

Loading…
Cancel
Save