From 2a2fdc57bd9141cb10040a812e6f7a689f5db60b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E7=8B=B8=E8=8A=B1=E5=96=B5?= Date: Sun, 4 Jun 2023 12:14:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dtx=E7=83=AD=E9=97=A8=E8=AF=84?= =?UTF-8?q?=E8=AE=BA=E6=98=B5=E7=A7=B0=E8=A2=AB=E9=94=99=E8=AF=AF=E5=88=87?= =?UTF-8?q?=E5=89=B2=E7=9A=84=E9=97=AE=E9=A2=98=20(#1397)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 修复tx热门评论昵称被错误切割的问题 * fix --------- Co-authored-by: Folltoshe --- src/renderer/utils/musicSdk/tx/comment.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/utils/musicSdk/tx/comment.js b/src/renderer/utils/musicSdk/tx/comment.js index 4ac21798..09745c43 100644 --- a/src/renderer/utils/musicSdk/tx/comment.js +++ b/src/renderer/utils/musicSdk/tx/comment.js @@ -241,7 +241,7 @@ export default { text: item.Content ? this.replaceEmoji(item.Content).replace(/\\n/g, '\n') : '', time: item.PubTime ? this.formatTime(item.PubTime) : null, timeStr: item.PubTime ? dateFormat2(this.formatTime(item.PubTime)) : null, - userName: item.Nick ? item.Nick.substring(1) : '', + userName: item.Nick ?? '', images: item.Pic ? [item.Pic] : [], avatar: item.Avatar, location: item.Location ? item.Location : '', @@ -254,7 +254,7 @@ export default { text: this.replaceEmoji(c.Content).replace(/\\n/g, '\n'), time: c.PubTime ? this.formatTime(c.PubTime) : null, timeStr: c.PubTime ? dateFormat2(this.formatTime(c.PubTime)) : null, - userName: c.Nick ? c.Nick.substring(1) : '', + userName: c.Nick ?? '', avatar: c.Avatar, images: c.Pic ? [c.Pic] : [], userId: c.EncryptUin,