mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2025-02-01 11:43:00 +08:00
fix: the initial music sort error when restart app (#79)
This commit is contained in:
parent
b394ec0899
commit
993f867109
|
@ -43,10 +43,11 @@ Howler.volume(store.state.player.volume);
|
|||
// 防止软件第一次打开资源加载2次
|
||||
Howler.autoUnlock = false;
|
||||
|
||||
const currentTrackId = store.state?.player?.currentTrack?.id;
|
||||
if (currentTrackId) {
|
||||
const currentTrack = store.state?.player?.currentTrack;
|
||||
if (currentTrack?.id) {
|
||||
store.dispatch("switchTrack", {
|
||||
id: currentTrackId,
|
||||
id: currentTrack.id,
|
||||
sort: currentTrack.sort,
|
||||
autoplay: false,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user