refactor: react webui

This commit is contained in:
手瓜一十雪
2024-11-29 12:22:25 +08:00
parent 53c1d40bcf
commit 31b0c1d3d7
4 changed files with 23 additions and 2 deletions

View File

@@ -5,6 +5,9 @@ const napcat = {
},
openExternalUrl: async (url) => {
ipcRenderer.send('open_external_url', url);
},
getWebUiUrlReact: async () => {
return ipcRenderer.invoke('napcat_get_reactweb');
}
};
// 在window对象下导出只读对象