Compare commits

...

3 Commits

Author SHA1 Message Date
alger
d08439c99e feat:v4.7.1 2025-05-24 10:11:50 +08:00
alger
dee4515cb3 fix: 修复切换收藏和不喜欢状态时事件处理逻辑 2025-05-24 10:11:29 +08:00
alger
53bc1774ff fix: 修复下载请求中的音乐 URL 处理逻辑 2025-05-24 10:02:15 +08:00
4 changed files with 7 additions and 4 deletions

View File

@@ -9,6 +9,9 @@
> QQ频道 <a href="https://pd.qq.com/s/cs056n33q?b=5" target="_blank">加入频道</a>
### 4.7.1
- 修复下载歌曲时歌曲URL获取BUG导致下载失败的问题
### ✨ 新功能
- 替换扁平风格图标 ([c8e6db1](https://github.com/algerkong/AlgerMusicPlayer/commit/c8e6db1))
- 添加双击歌曲播放功能 ([258828f](https://github.com/algerkong/AlgerMusicPlayer/commit/258828f))

View File

@@ -1,6 +1,6 @@
{
"name": "AlgerMusicPlayer",
"version": "4.7.0",
"version": "4.7.1",
"description": "Alger Music Player",
"author": "Alger <algerkc@qq.com>",
"main": "./out/main/index.js",

View File

@@ -38,7 +38,7 @@ export const useDownload = () => {
songData.ar = songData.ar || songData.song?.artists;
// 发送下载请求
window.electron.ipcRenderer.send('download-music', {
url: musicUrl,
url: typeof musicUrl === 'string' ? musicUrl : musicUrl.url,
filename,
songInfo: {
...songData,

View File

@@ -74,7 +74,7 @@ export function useSongItem(props: {
// 切换收藏状态
const toggleFavorite = async (e: Event) => {
e.stopPropagation();
e && e.stopPropagation();
const numericId = typeof props.item.id === 'string' ? parseInt(props.item.id, 10) : props.item.id;
if (isFavorite.value) {
@@ -86,7 +86,7 @@ export function useSongItem(props: {
// 切换不喜欢状态
const toggleDislike = async (e: Event) => {
e.stopPropagation();
e && e.stopPropagation();
if (isDislike.value) {
playerStore.removeFromDislikeList(props.item.id);
return;