chore: webui

This commit is contained in:
手瓜一十雪
2024-08-11 13:48:26 +08:00
parent 1046b68640
commit be4f59bc5e
13 changed files with 63 additions and 86 deletions

View File

@@ -0,0 +1,11 @@
const { contextBridge } = require('electron')
const { ipcRenderer } = require('electron')
const napcat = {
getWebUiUrl: async () => {
return ipcRenderer.invoke("napcat_get_webtoken")
}
}
// 在window对象下导出只读对象
contextBridge.exposeInMainWorld('napcat', napcat)