Fix: 解决打包后的应用找不到素材的问题
This commit is contained in:
@ -15,6 +15,8 @@ contextBridge.exposeInMainWorld('electronAPI', {
|
||||
onPetSelectionChanged: (callback) => {
|
||||
ipcRenderer.on('pet-selection-changed', (_, fileName) => callback(fileName));
|
||||
},
|
||||
getPetFiles: () => ipcRenderer.invoke('get-pet-files'),
|
||||
getPetUrl: (fileName) => ipcRenderer.invoke('get-pet-url', fileName),
|
||||
showTooltip: (text) => ipcRenderer.send('show-tooltip', text),
|
||||
onUpdatePosition: (callback) => {
|
||||
ipcRenderer.on('update-position', (_, position) => callback(position))
|
||||
|
Reference in New Issue
Block a user