新增 API配置重命名功能和自定义消息对话框组件,优化消息提示交互体验

This commit is contained in:
yuantao
2026-04-16 18:51:16 +08:00
parent 5bbdc1b90d
commit a01fd3a641
3 changed files with 893 additions and 112 deletions

View File

@@ -17,5 +17,6 @@ contextBridge.exposeInMainWorld('electronAPI', {
switchApiProfile: (profileName) => ipcRenderer.invoke('switch-api-profile', profileName),
createApiProfile: (name) => ipcRenderer.invoke('create-api-profile', name),
deleteApiProfile: (name) => ipcRenderer.invoke('delete-api-profile', name),
renameApiProfile: (oldName, newName) => ipcRenderer.invoke('rename-api-profile', oldName, newName)
renameApiProfile: (oldName, newName) => ipcRenderer.invoke('rename-api-profile', oldName, newName),
duplicateApiProfile: (sourceName, newName) => ipcRenderer.invoke('duplicate-api-profile', sourceName, newName)
})