修复列表清除Bug

This commit is contained in:
lyswhut
2021-04-03 21:31:19 +08:00
parent ef591c883a
commit c6853b197c
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -208,7 +208,6 @@ const mutations = {
if (item.typeUrl['320k']) delete item.typeUrl['320k']
if (item.typeUrl.flac) delete item.typeUrl.flac
if (item.typeUrl.wav) delete item.typeUrl.wav
clearLyric()
// v1.8.2以前的Lyric
if (item.lxlrc) delete item.lxlrc
@@ -216,6 +215,7 @@ const mutations = {
if (item.tlrc) delete item.tlrc
}
}
clearLyric()
},
setOtherSource(state, { musicInfo, otherSource }) {
musicInfo.otherSource = otherSource
+5 -5
View File
@@ -756,7 +756,7 @@ export default {
await this.refreshSetting(this.setting, this.settingVersion)
},
exportPlayList(path) {
async exportPlayList(path) {
const data = JSON.parse(JSON.stringify({
type: 'playList',
data: [
@@ -765,8 +765,8 @@ export default {
...this.userList,
],
}))
for (const list of data.data) {
for (const item of list.list) {
for await (const list of data.data) {
for await (const item of list.list) {
if (item.otherSource) delete item.otherSource
}
}
@@ -804,8 +804,8 @@ export default {
...this.userList,
],
}))
for (const list of allData.playList) {
for (const item of list.list) {
for await (const list of allData.playList) {
for await (const item of list.list) {
if (item.otherSource) delete item.otherSource
}
}