diff --git a/src/renderer/store/modules/list.js b/src/renderer/store/modules/list.js index c5b3aa9c..ad9b537f 100644 --- a/src/renderer/store/modules/list.js +++ b/src/renderer/store/modules/list.js @@ -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 diff --git a/src/renderer/views/Setting.vue b/src/renderer/views/Setting.vue index 6848ccd4..301cce84 100644 --- a/src/renderer/views/Setting.vue +++ b/src/renderer/views/Setting.vue @@ -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 } }