refactor: rename global API from electronAPI to api and update references

This commit is contained in:
Jason
2025-08-25 10:30:45 +08:00
parent d3adfc480d
commit d78013562c
5 changed files with 15 additions and 15 deletions

View File

@@ -32,7 +32,7 @@ const ProviderList: React.FC<ProviderListProps> = ({
const handleUrlClick = async (url: string) => {
try {
await window.electronAPI.openExternal(url)
await window.api.openExternal(url)
} catch (error) {
console.error('打开链接失败:', error)
}