This commit is contained in:
2026-05-21 00:12:44 +08:00
commit 4ba2b730de
7 changed files with 171 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
const { contextBridge, ipcRenderer } = require('electron');
// 暴露安全的 API 给渲染进程
contextBridge.exposeInMainWorld('electronAPI', {
// 可扩展更多功能
platform: process.platform
});