Skip to content

Commit 91b1ff7

Browse files
committed
fix: 修复播放音乐时URL未正确更新的问题
1 parent 8cc617a commit 91b1ff7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/renderer/store/modules/player.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,7 @@ export const usePlayerStore = defineStore('player', () => {
503503
const updatedPlayMusic = await getSongDetail(originalMusic);
504504
playMusic.value = updatedPlayMusic;
505505
playMusicUrl.value = updatedPlayMusic.playMusicUrl as string;
506+
music.playMusicUrl = updatedPlayMusic.playMusicUrl as string;
506507

507508
// 保存到本地存储
508509
localStorage.setItem('currentPlayMusic', JSON.stringify(playMusic.value));

0 commit comments

Comments
 (0)