Skip to content

Commit

Permalink
🐞 fix: 修复歌单无法删除歌曲
Browse files Browse the repository at this point in the history
  • Loading branch information
imsyy committed Jan 13, 2024
1 parent cf88c76 commit 019b78b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/List/SongList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ const delCloudSong = (data, song, index) => {
// 歌单歌曲删除
const deletePlaylistSong = (pid, song, data, index) => {
if (!pid || !song) return $message.error("无法正确定位到歌单,请重试");
$dialog.warning({
title: "确认删除",
content: `确认从歌单中移除 ${song.name}?该操作无法撤销!`,
Expand Down
2 changes: 1 addition & 1 deletion src/components/List/SongListDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
@click="
() => {
drawerShow = false;
emit('deletePlaylistSong', playlistData, songData, songIndex);
emit('deletePlaylistSong', songSourceId, songData, playlistData, songIndex);
}
"
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/List/SongListDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ const openDropdown = (e, data, song, index, sourceId, type) => {
show: !isCloud && isUserPlaylist,
props: {
onClick: () => {
emit("deletePlaylistSong", data, song, index);
emit("deletePlaylistSong", sourceId, song, data, index);
},
},
icon: renderIcon("delete"),
Expand Down

0 comments on commit 019b78b

Please sign in to comment.