Skip to content

Commit b7a58a0

Browse files
committed
fix: 修复歌曲初始化问题
1 parent c08c2cb commit b7a58a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderer/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ onMounted(async () => {
111111
if (isLyricWindow.value) {
112112
return;
113113
}
114-
// 先初始化播放状态
115-
await playerStore.initializePlayState();
116114
// 初始化 MusicHook,注入 playerStore
117115
initMusicHook(playerStore);
116+
// 初始化播放状态
117+
await playerStore.initializePlayState();
118118
119119
// 如果有正在播放的音乐,则初始化音频监听器
120120
if (playerStore.playMusic && playerStore.playMusic.id) {

0 commit comments

Comments
 (0)