'commit'
This commit is contained in:
@@ -441,11 +441,11 @@
|
||||
generateMusicBtn.disabled = false;
|
||||
generateMusicBtn.innerHTML = '<i class="fas fa-play"></i> 生成音乐';
|
||||
|
||||
if (data.id) {
|
||||
if (data.data && data.data.task_id) {
|
||||
// 跳转到进度页面
|
||||
window.location.href = `/static/Suno/music_progress.html?task_id=${data.id}`;
|
||||
window.location.href = `/static/Suno/music_progress.html?task_id=${data.data.task_id}`;
|
||||
} else {
|
||||
alert('生成音乐任务失败: ' + (data.error || '未知错误'));
|
||||
alert('生成音乐任务失败: ' + (data.error || data.message || '未知错误'));
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
|
Reference in New Issue
Block a user