修复刚从线列表的歌曲无法批量添加、添加到我的列表后无法调整顺序等问题

This commit is contained in:
lyswhut
2021-12-11 15:54:08 +08:00
parent b0e2f44f01
commit 5aad81c696
4 changed files with 9 additions and 8 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
import music from '../../utils/music'
import { markRawList } from '@renderer/utils/vueTools'
const sources = []
const sourceList = {}
@@ -150,7 +151,7 @@ const mutations = {
},
setList(state, datas) {
let source = state.sourceList[datas.source]
source.list = datas.list
source.list = markRawList(datas.list)
source.total = datas.total
source.allPage = datas.allPage
source.page = datas.page
@@ -164,7 +165,7 @@ const mutations = {
for (const source of results) {
state.sourceMaxPage[source.source] = source.allPage
if (source.allPage < page) continue
list.push(...source.list)
list.push(...markRawList(source.list))
pages.push(source.allPage)
total += source.total
// limit = Math.max(source.limit, limit)