From a98c0516a315dba92a11e3790b228499b71ebc3c Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sun, 6 Dec 2020 21:17:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=85=B7=E7=8B=97=E6=BA=90?= =?UTF-8?q?=E7=9A=84=E6=9F=90=E4=BA=9B=E6=AD=8C=E6=9B=B2=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E4=B8=93=E8=BE=91=E5=AD=97=E6=AE=B5=E5=AF=BC=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=8A=A0=E8=BD=BD=E5=A4=B1=E8=B4=A5=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish/changeLog.md | 1 + src/renderer/utils/index.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/publish/changeLog.md b/publish/changeLog.md index a746738a..c94b8b8e 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -3,3 +3,4 @@ - 修复MAC平台上下载歌曲封面嵌入无法显示的问题 - 修复MAC平台首次运行软件最小化、关闭控制按钮默认在右边的问题 +- 修复酷狗源的某些歌曲没有专辑字段导致的列表加载失败问题 diff --git a/src/renderer/utils/index.js b/src/renderer/utils/index.js index 6c8b6adb..51fd5b3a 100644 --- a/src/renderer/utils/index.js +++ b/src/renderer/utils/index.js @@ -80,7 +80,7 @@ const encodeNames = { ''': "'", ''': "'", } -export const decodeName = str => str.replace(/(?:&|<|>|"|'|')/gm, s => encodeNames[s]) +export const decodeName = (str = '') => str.replace(/(?:&|<|>|"|'|')/gm, s => encodeNames[s]) const easeInOutQuad = (t, b, c, d) => { t /= d / 2