fix: 修复下载请求中的音乐 URL 处理逻辑

This commit is contained in:
alger
2025-05-24 10:02:15 +08:00
parent 589540be29
commit 53bc1774ff

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,