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:
Vanilla-puree
2026-04-08 19:28:27 +08:00
committed by alger
parent ad2df12957
commit 0ab784024c
8 changed files with 104 additions and 4 deletions
+1 -2
View File
@@ -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);