Feature(custom): optimize get config speed

This commit is contained in:
Kuingsmile
2024-06-09 21:05:30 +08:00
parent 19c12b6b02
commit 106290f868
20 changed files with 57 additions and 55 deletions
-10
View File
@@ -34,13 +34,3 @@ export function saveConfig (_config: IObj | string, value?: any) {
export function removeConfig (key: string, propName: string) {
ipcRenderer.send(PICLIST_MANAGE_REMOVE_CONFIG, key, propName)
}
export function sendToMain (channel: string, ...args: any[]) {
const data = getRawData(args)
ipcRenderer.send(channel, ...data)
}
export function invokeToMain (channel: string, ...args: any[]) {
const data = getRawData(args)
return ipcRenderer.invoke(channel, ...data)
}