From 4fd8d9146f60677a2e5b2556637f828e0a0122c7 Mon Sep 17 00:00:00 2001 From: liujiangyong Date: Fri, 24 Feb 2023 14:41:00 +0800 Subject: [PATCH] =?UTF-8?q?fix=208564=20=E5=B0=8F=E7=A8=8B=E5=BA=8F-?= =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=AC=A1=E5=B7=A1=E6=A3=80=E5=90=8E=E5=B7=A1?= =?UTF-8?q?=E6=A3=80=E8=AE=B0=E5=BD=95=E4=B8=8A=E4=B8=80=E6=AC=A1=E5=B7=A1?= =?UTF-8?q?=E6=A3=80=E6=97=B6=E9=97=B4=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- weapp/package/polling/polling.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weapp/package/polling/polling.js b/weapp/package/polling/polling.js index c1459de..872e414 100644 --- a/weapp/package/polling/polling.js +++ b/weapp/package/polling/polling.js @@ -183,7 +183,7 @@ Page({ return; } let dataSource = res.map(e => { - e.lastInspectionTime = moment(e.lastInspectionTime).format('YYYY-MM-DD'); + e.lastInspectionTime = e.lastInspectionTime ? moment(e.lastInspectionTime).format('YYYY-MM-DD') : '--'; e.inspectionTime = moment(e.inspectionTime).format('YYYY-MM-DD'); return e; })