mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-05-19 03:57:28 +08:00
feat(download): 新增未保存下载设置时的确认对话框 (#507)
- feat(download): 关闭下载设置抽屉时检测未保存更改,提供取消/放弃/保存选项 - fix: 自动播放首次暂停无法暂停,移除不必要的 isFirstPlay 检查 - fix: 歌手详情路由添加 props key,修复跳转歌手详情不生效问题 - i18n: 添加 download.save.* 翻译(5 种语言) Co-Authored-By: 心妄 <1661272893@qq.com>
This commit is contained in:
@@ -585,8 +585,7 @@ export const usePlaylistStore = defineStore(
|
||||
// Toggle play/pause for current song
|
||||
if (
|
||||
playerCore.playMusic.id === song.id &&
|
||||
playerCore.playMusic.playMusicUrl === song.playMusicUrl &&
|
||||
!song.isFirstPlay
|
||||
playerCore.playMusic.playMusicUrl === song.playMusicUrl
|
||||
) {
|
||||
if (playerCore.play) {
|
||||
playerCore.setPlayMusic(false);
|
||||
|
||||
Reference in New Issue
Block a user