diff --git a/tauri-app/src/api/modules/voice.ts b/tauri-app/src/api/modules/voice.ts index 1c86311..9a8a04d 100644 --- a/tauri-app/src/api/modules/voice.ts +++ b/tauri-app/src/api/modules/voice.ts @@ -182,7 +182,7 @@ export async function loadVoiceMaterials(): Promise { /** 保存音色素材到本地 */ export async function saveVoiceMaterial(material: VoiceMaterial): Promise { - 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 || '保存素材失败'); }