修复 ComfyUI V2 配置功能
- 添加 ComfyUI 表的数据库迁移到迁移管理器中 - 修复前端调用 comfyui_v2_update_config 和 comfyui_v2_validate_config 的参数名 - 解决 'no such table: comfyui_configs' 错误 - 解决 'missing required key configRequest' 错误
This commit is contained in:
@@ -283,7 +283,7 @@ export class ComfyUIV2Service {
|
||||
...config,
|
||||
};
|
||||
|
||||
return await invoke<string>('comfyui_v2_update_config', { config: fullConfig });
|
||||
return await invoke<string>('comfyui_v2_update_config', { configRequest: fullConfig });
|
||||
} catch (error) {
|
||||
console.error('Failed to update config:', error);
|
||||
throw new Error(`更新配置失败: ${error}`);
|
||||
@@ -295,7 +295,7 @@ export class ComfyUIV2Service {
|
||||
*/
|
||||
static async validateConfig(config: ComfyUIV2Config): Promise<boolean> {
|
||||
try {
|
||||
const result = await invoke<string>('comfyui_v2_validate_config', { config });
|
||||
const result = await invoke<string>('comfyui_v2_validate_config', { configRequest: config });
|
||||
return result === 'valid';
|
||||
} catch (error) {
|
||||
console.error('Failed to validate config:', error);
|
||||
|
||||
Reference in New Issue
Block a user