From 7756b62f4c27cf8ca84ced5221116af723498496 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sat, 9 Jan 2021 15:15:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=AD=8C=E6=9B=B2=E5=8C=B9?= =?UTF-8?q?=E9=85=8D=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/utils/music/index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/renderer/utils/music/index.js b/src/renderer/utils/music/index.js index 0e969593..81240ab8 100644 --- a/src/renderer/utils/music/index.js +++ b/src/renderer/utils/music/index.js @@ -97,6 +97,13 @@ export default { result.splice(i, 1) } } + for (let i = result.length - 1; i > -1; i--) { + const item = result[i] + if (item.name === musicInfo.name && item.singer === musicInfo.singer && item.albumName === musicInfo.albumName) { + newResult.push(item) + result.splice(i, 1) + } + } for (let i = result.length - 1; i > -1; i--) { const item = result[i] if (item.singer === musicInfo.singer && item.name === musicInfo.name) {