修复播放下载列表的歌曲时切歌、歌词显示问题

This commit is contained in:
lyswhut
2021-08-11 09:59:47 +08:00
parent e15178150b
commit 1f85492690
5 changed files with 78 additions and 56 deletions
+4 -2
View File
@@ -13,9 +13,10 @@ import {
assertApiSupport,
} from '../../utils'
window.downloadList = []
// state
const state = {
list: [],
list: window.downloadList,
waitingList: [],
downloadStatus: {
RUN: 'run',
@@ -369,6 +370,7 @@ const actions = {
status: state.downloadStatus.WAITING,
statusText: '待下载',
url: null,
// songmid: musicInfo.songmid,
fileName: `${rootState.setting.download.fileName
.replace('歌名', musicInfo.name)
.replace('歌手', musicInfo.singer)}.${ext}`.replace(filterFileName, ''),
@@ -667,7 +669,7 @@ const mutations = {
downloadInfo.order = order
},
updateDownloadList(state, list) {
state.list = list
state.list = window.downloadList = list
},
updateUrl(state, { downloadInfo, url }) {
downloadInfo.url = url