添加读取本地文件功能,支持以 base64 格式返回身份证照片;更新客户信息接口,支持上传婚姻状况及相关信息
This commit is contained in:
@@ -21,4 +21,6 @@ contextBridge.exposeInMainWorld("electronAPI", {
|
||||
},
|
||||
restartApp: () => ipcRenderer.send("restart-app"),
|
||||
quitApp: () => ipcRenderer.send("quit-app"),
|
||||
// 读取本地文件并返回 base64 字符串
|
||||
readLocalFile: (filePath) => ipcRenderer.invoke("read-local-file", filePath),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user