尝试新增api 优化导出

This commit is contained in:
xuncha authored and xuncha committed 2026-02-05 18:33:29 +08:00
1 parent 2d573896f9
commit ff2f6799c8
9 files changed
+943 -7

No files matched your search

+7
View File
@@ -286,5 +286,12 @@ contextBridge.exposeInMainWorld('electronAPI', {
ipcRenderer.on('llama:downloadProgress', listener)
return () => ipcRenderer.removeListener('llama:downloadProgress', listener)
}
},
// HTTP API 服务
http: {
start: (port?: number) => ipcRenderer.invoke('http:start', port),
stop: () => ipcRenderer.invoke('http:stop'),
status: () => ipcRenderer.invoke('http:status')
}
})