refactor: rename global API from electronAPI to api and update references
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user