refactor: simplify currentTrack computed property in Player.vue
Remove unnecessary else clause for cleaner code structure. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
		
							parent
							
								
									92093ef80d
								
							
						
					
					
						commit
						672b2d80d5
					
				| 
						 | 
				
			
			@ -24,9 +24,9 @@ console.log('[Player] 检查 store 方法:', {
 | 
			
		|||
const currentTrack = computed(() => {
 | 
			
		||||
	if (playQueueStore.playMode.shuffle && playQueueStore.shuffleList.length > 0) {
 | 
			
		||||
		return playQueueStore.list[playQueueStore.shuffleList[playQueueStore.currentIndex]]
 | 
			
		||||
	} else {
 | 
			
		||||
		return playQueueStore.list[playQueueStore.currentIndex]
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	return playQueueStore.list[playQueueStore.currentIndex]
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
// 获取当前歌曲的音频源
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user