修复内存扫描问题

This commit is contained in:
cc
2026-03-02 20:30:38 +08:00
parent b07bbd68d7
commit 366da8d38e
7 changed files with 346 additions and 62 deletions

View File

@@ -114,6 +114,7 @@ contextBridge.exposeInMainWorld('electronAPI', {
key: {
autoGetDbKey: () => ipcRenderer.invoke('key:autoGetDbKey'),
autoGetImageKey: (manualDir?: string, wxid?: string) => ipcRenderer.invoke('key:autoGetImageKey', manualDir, wxid),
scanImageKeyFromMemory: (userDir: string) => ipcRenderer.invoke('key:scanImageKeyFromMemory', userDir),
onDbKeyStatus: (callback: (payload: { message: string; level: number }) => void) => {
ipcRenderer.on('key:dbKeyStatus', (_, payload) => callback(payload))
return () => ipcRenderer.removeAllListeners('key:dbKeyStatus')