Fix dingding plugin (#221)

This commit is contained in:
paisley
2026-02-28 14:42:55 +08:00
committed by GitHub
Unverified
parent 98703a0ab8
commit dbf88a79be
8 changed files with 220 additions and 65 deletions

View File

@@ -572,11 +572,12 @@ function AddChannelDialog({ selectedType, onSelectType, onClose, onChannelAdded
const config: Record<string, unknown> = { ...configValues };
const saveResult = await window.electron.ipcRenderer.invoke('channel:saveConfig', selectedType, config) as {
success?: boolean;
error?: string;
warning?: string;
pluginInstalled?: boolean;
};
if (!saveResult?.success) {
throw new Error('Failed to save channel config');
throw new Error(saveResult?.error || 'Failed to save channel config');
}
if (typeof saveResult.warning === 'string' && saveResult.warning) {
toast.warning(saveResult.warning);