Skip to content

Commit

Permalink
修复歌单详情页内歌曲最多只加载30首的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lyswhut committed Mar 26, 2023
1 parent 151007c commit 4ea5ea6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
9 changes: 2 additions & 7 deletions publish/changeLog.md
@@ -1,8 +1,3 @@
### 优化
### 修复

- 竖屏下的首页允许滑动切换页面(恢复v0.x.x的切页操作)
- 优化更新语言、主题设置时的流畅度

### 其他

- 启用新架构
- 修复歌单详情页内歌曲最多只加载30首的问题
2 changes: 1 addition & 1 deletion src/store/leaderboard/action.ts
Expand Up @@ -16,7 +16,7 @@ export default {
else state.listDetailInfo.total = result.limit * page
state.listDetailInfo.limit = result.limit
state.listDetailInfo.page = page
state.listDetailInfo.maxPage = Math.ceil(result.total / result.limit)
state.listDetailInfo.maxPage = Math.ceil(state.listDetailInfo.total / result.limit)

return state.listDetailInfo
},
Expand Down
4 changes: 2 additions & 2 deletions src/store/songlist/action.ts
Expand Up @@ -19,7 +19,7 @@ export default {
state.listInfo.source = result.source
state.listInfo.tagId = tagId
state.listInfo.sortId = sortId
state.listInfo.maxPage = Math.ceil(result.total / result.limit)
state.listInfo.maxPage = Math.ceil(state.listInfo.total / result.limit)

return state.listInfo
},
Expand All @@ -43,7 +43,7 @@ export default {
state.listDetailInfo.limit = result.limit
state.listDetailInfo.page = page
state.listDetailInfo.info = { ...result.info }
state.listInfo.maxPage = Math.ceil(result.total / result.limit)
state.listDetailInfo.maxPage = Math.ceil(state.listDetailInfo.total / result.limit)

return state.listDetailInfo
},
Expand Down

0 comments on commit 4ea5ea6

Please sign in to comment.