修复列表清除Bug

pull/495/head
lyswhut 2021-04-03 21:31:19 +08:00
parent ef591c883a
commit c6853b197c
2 changed files with 6 additions and 6 deletions

View File

@ -208,7 +208,6 @@ const mutations = {
if (item.typeUrl['320k']) delete item.typeUrl['320k'] if (item.typeUrl['320k']) delete item.typeUrl['320k']
if (item.typeUrl.flac) delete item.typeUrl.flac if (item.typeUrl.flac) delete item.typeUrl.flac
if (item.typeUrl.wav) delete item.typeUrl.wav if (item.typeUrl.wav) delete item.typeUrl.wav
clearLyric()
// v1.8.2以前的Lyric // v1.8.2以前的Lyric
if (item.lxlrc) delete item.lxlrc if (item.lxlrc) delete item.lxlrc
@ -216,6 +215,7 @@ const mutations = {
if (item.tlrc) delete item.tlrc if (item.tlrc) delete item.tlrc
} }
} }
clearLyric()
}, },
setOtherSource(state, { musicInfo, otherSource }) { setOtherSource(state, { musicInfo, otherSource }) {
musicInfo.otherSource = otherSource musicInfo.otherSource = otherSource

View File

@ -756,7 +756,7 @@ export default {
await this.refreshSetting(this.setting, this.settingVersion) await this.refreshSetting(this.setting, this.settingVersion)
}, },
exportPlayList(path) { async exportPlayList(path) {
const data = JSON.parse(JSON.stringify({ const data = JSON.parse(JSON.stringify({
type: 'playList', type: 'playList',
data: [ data: [
@ -765,8 +765,8 @@ export default {
...this.userList, ...this.userList,
], ],
})) }))
for (const list of data.data) { for await (const list of data.data) {
for (const item of list.list) { for await (const item of list.list) {
if (item.otherSource) delete item.otherSource if (item.otherSource) delete item.otherSource
} }
} }
@ -804,8 +804,8 @@ export default {
...this.userList, ...this.userList,
], ],
})) }))
for (const list of allData.playList) { for await (const list of allData.playList) {
for (const item of list.list) { for await (const item of list.list) {
if (item.otherSource) delete item.otherSource if (item.otherSource) delete item.otherSource
} }
} }