fix: 修复 save_voice_material IPC 调用参数包装错误,改为直接传入 material 对象
This commit is contained in:
@@ -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 || '保存素材失败');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user