We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d4e6ef commit e9fe900Copy full SHA for e9fe900
src/renderer/store/modules/player.ts
@@ -119,6 +119,7 @@ export const getSongUrl = async (
119
// 如果自定义音源解析失败,继续使用正常的获取流程
120
console.warn('自定义音源解析失败,使用默认音源');
121
} catch (error) {
122
+ console.error('error',error)
123
console.error('自定义音源解析出错:', error);
124
}
125
@@ -548,7 +549,7 @@ export const usePlayerStore = defineStore('player', () => {
548
549
const setPlay = async (song: SongResult) => {
550
try {
551
// 如果是当前正在播放的音乐,则切换播放/暂停状态
- if (playMusic.value.id === song.id) {
552
+ if (playMusic.value.id === song.id && playMusic.value.playMusicUrl === song.playMusicUrl) {
553
if (play.value) {
554
setPlayMusic(false);
555
audioService.getCurrentSound()?.pause();
0 commit comments