From c40dc0fa50cdff3545e724b34bad68fd4027d9dd Mon Sep 17 00:00:00 2001 From: lyswhut Date: Fri, 2 Oct 2020 12:59:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=81=9A=E5=90=88=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E7=9A=84=E5=88=86=E9=A1=B5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish/changeLog.md | 23 +--------------------- src/renderer/utils/music/wy/musicSearch.js | 5 ++--- 2 files changed, 3 insertions(+), 25 deletions(-) diff --git a/publish/changeLog.md b/publish/changeLog.md index 3be7f95e..d0f62f40 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -1,25 +1,4 @@ -提前祝大家中秋&国庆快乐~ - -### 新增 - -- 播放控制栏开启/关闭桌面歌词按钮 新增右击按钮时锁定/解锁桌面歌词功能 - -### 优化 - -- 优化我的列表滚动条位置的保存逻辑 -- 更新设置-备份与恢复功能的描述 -- 优化软件内鼠标悬停的提示界面 - ### 修复 -- 修复桌面歌词窗口不允许拖出桌面之外的位置计算偏移Bug -- 修复网易云KTV嗨榜无法加载的问题 -- 修复初始化搜索历史列表功能 -- 修复重启软件后试听列表与收藏列表无法恢复上次的滚动位置的问题 -- 修复歌曲封面无法嵌入的Bug -- 修复酷狗歌词格式问题 -- 修复关闭切换动画时从搜索候选列表点击内容无效的问题 +- 修复聚合搜索的分页问题 -### 其他 - -- 更新 Electron 到 v10.1.3 diff --git a/src/renderer/utils/music/wy/musicSearch.js b/src/renderer/utils/music/wy/musicSearch.js index 78ef0125..6f99b12e 100644 --- a/src/renderer/utils/music/wy/musicSearch.js +++ b/src/renderer/utils/music/wy/musicSearch.js @@ -84,12 +84,11 @@ export default { if (limit != null) this.limit = limit return this.musicSearch(str, page).then(result => { if (!result || result.code !== 200) return this.search(str, page, { limit }, retryNum) - // console.log(result.result) - let list = this.handleResult(result.result.songs) + let list = this.handleResult(result.result.songs || []) if (list == null) return this.search(str, page, { limit }, retryNum) - this.total = result.result.songCount + this.total = result.result.songCount || 0 this.page = page this.allPage = Math.ceil(this.total / this.limit)