更新依赖

This commit is contained in:
lyswhut
2022-07-03 22:16:06 +08:00
parent bf81c8facc
commit 2472574cde
4 changed files with 1105 additions and 1309 deletions
+2 -2
View File
@@ -94,7 +94,7 @@ const useListInit = ({
const usePlayInfoInit = () => {
const setPlayList = useCommit('player', 'setList')
return downloadList => {
return () => {
return getPlayInfo().then(info => {
window.restorePlayInfo = null
if (!info?.listId || info.index < 0) return
@@ -157,7 +157,7 @@ export default ({
]).catch(err => log.error(err))
music.init() // 初始化音乐sdk
await initList().catch(err => log.error(err)) // 初始化列表
await initPlayInfo(downloadList.value).catch(err => log.error(err)) // 初始化上次的歌曲播放信息
await initPlayInfo(downloadList).catch(err => log.error(err)) // 初始化上次的歌曲播放信息
await initSearchHistory(saveSearchHistoryListThrottle).catch(err => log.error(err)) // 初始化搜索历史记录
}
}