修复tx源的歌词无法显示的问题

This commit is contained in:
lyswhut 2021-08-16 13:26:32 +08:00
parent ac7548da97
commit 6035e242c5
2 changed files with 5 additions and 3 deletions

View File

@ -6,3 +6,7 @@
### 调整 ### 调整
- 为了与搜索、歌单操作栏位置统一,现将我的列表-收藏的列表操作栏由底部挪到顶部 - 为了与搜索、歌单操作栏位置统一,现将我的列表-收藏的列表操作栏由底部挪到顶部
### 修复
- 修复tx源的歌词无法显示的问题

View File

@ -30,9 +30,7 @@ export const formatPlayTime2 = time => {
export const b64DecodeUnicode = str => { export const b64DecodeUnicode = str => {
// Going backwards: from bytestream, to percent-encoding, to original string. // Going backwards: from bytestream, to percent-encoding, to original string.
return decodeURIComponent(window.atob(str).split('').map(function(c) { return Buffer.from(str, 'base64').toString()
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2)
}).join(''))
} }
const encodeNames = { const encodeNames = {