修复列表清除Bug
parent
ef591c883a
commit
c6853b197c
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue