修复内存扫描问题

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

No files matched your search

+1
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')