fix: 修复 save_voice_material IPC 调用参数包装错误,改为直接传入 material 对象

This commit is contained in:
小鱼开发
2026-04-22 09:28:43 +08:00
parent 82276ca3b9
commit ee247de4b4
+1 -1
View File
@@ -182,7 +182,7 @@ export async function loadVoiceMaterials(): Promise<VoiceMaterial[]> {
/** 保存音色素材到本地 */
export async function saveVoiceMaterial(material: VoiceMaterial): Promise<void> {
const result = await invoke<{ code: number; message: string }>('save_voice_material', { args: material });
const result = await invoke<{ code: number; message: string }>('save_voice_material', material);
if (result.code !== 200) {
throw new Error(result.message || '保存素材失败');
}