分离歌词与歌曲列表信息的保存

This commit is contained in:
lyswhut
2021-04-03 20:26:28 +08:00
parent b8250b67c9
commit 4918db9cb1
11 changed files with 74 additions and 30 deletions
+7 -3
View File
@@ -1,4 +1,5 @@
import musicSdk from '../../utils/music'
import { clearLyric } from '../../utils'
let allList = {}
window.allList = allList
@@ -207,9 +208,12 @@ 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
if (item.lxlrc) item.lxlrc = null
if (item.lrc) item.lrc = null
if (item.tlrc) item.tlrc = null
clearLyric()
// v1.8.2以前的Lyric
if (item.lxlrc) delete item.lxlrc
if (item.lrc) delete item.lrc
if (item.tlrc) delete item.tlrc
}
}
},