From 8265514bc8ac7df258f2e0c530d6fa5c1b0138dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Tue, 16 Jan 2024 10:33:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0=E5=9B=BE=E7=89=87=E7=9A=84=E4=BB=98?= =?UTF-8?q?=E6=AC=BE=E5=8D=95=E4=B8=8D=E6=8A=A5=E9=94=99=EF=BC=8C=E6=AD=A3?= =?UTF-8?q?=E5=B8=B8=E6=98=BE=E7=A4=BA=E6=B2=A1=E5=9B=BE=E7=89=87=E7=9A=84?= =?UTF-8?q?=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/invoice/Paid.jsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/views/invoice/Paid.jsx b/src/views/invoice/Paid.jsx index f5b7136..81b2717 100644 --- a/src/views/invoice/Paid.jsx +++ b/src/views/invoice/Paid.jsx @@ -55,19 +55,18 @@ function Paid(){ function showPIc(text,record) { let strPic = record.fl_pic; //console.log(JSON.parse(strPic)); - try { + if (isNotEmpty(strPic)){ return ( JSON.parse(strPic).map((item,index) => { return ; }) - ); - - } catch (error) { + ); + }else{ return ""; } - + }