diff --git a/publish/changeLog.md b/publish/changeLog.md index 08e7405..b165033 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -6,3 +6,7 @@ ### 调整 - 为了与搜索、歌单操作栏位置统一,现将我的列表-收藏的列表操作栏由底部挪到顶部 + +### 修复 + +- 修复tx源的歌词无法显示的问题 diff --git a/src/utils/index.js b/src/utils/index.js index acd2f45..5182e0f 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -30,9 +30,7 @@ export const formatPlayTime2 = time => { export const b64DecodeUnicode = str => { // Going backwards: from bytestream, to percent-encoding, to original string. - return decodeURIComponent(window.atob(str).split('').map(function(c) { - return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2) - }).join('')) + return Buffer.from(str, 'base64').toString() } const encodeNames = {