From fbfce53f534d56fc53807eb4e5b140a369f4dcb3 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sun, 5 Dec 2021 18:59:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9F=90=E4=BA=9B=E6=AD=8C?= =?UTF-8?q?=E6=9B=B2=E8=AF=84=E8=AE=BA=E7=9A=84=E6=97=B6=E9=97=B4=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/music/tx/comment.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/music/tx/comment.js b/src/utils/music/tx/comment.js index 58afe59..6003cd2 100644 --- a/src/utils/music/tx/comment.js +++ b/src/utils/music/tx/comment.js @@ -154,8 +154,8 @@ export default { }, filterComment(rawList) { return rawList.map(item => { - let time = parseInt(item.time + '000') - let timeStr = dateFormat2(time) + let time = String(item.time).length < 10 ? null : parseInt(item.time + '000') + let timeStr = time ? dateFormat2(time) : null if (item.middlecommentcontent) { let firstItem = item.middlecommentcontent[0] firstItem.avatarurl = item.avatarurl