feat: 添加公告功能,支持查看公告和在系统浏览器中打开链接

This commit is contained in:
2025-08-31 23:11:24 +08:00
parent fe35e37371
commit c5fd0c1253
5 changed files with 108 additions and 6 deletions

View File

@@ -9,6 +9,7 @@ contextBridge.exposeInMainWorld('electronAPI', {
openDevTools: () => ipcRenderer.invoke('open-dev-tools'),
selectFolder: () => ipcRenderer.invoke('select-folder'),
selectFile: (filters?: any[]) => ipcRenderer.invoke('select-file', filters),
openUrl: (url: string) => ipcRenderer.invoke('open-url', url),
// 初始化相关API
checkEnvironment: () => ipcRenderer.invoke('check-environment'),