feat: 保存api服务的配置,实现随weflow静默启动

This commit is contained in:
H3CoF6
2026-03-24 04:11:34 +08:00
parent 619cc84d15
commit 77e5c44673
5 changed files with 72 additions and 14 deletions

View File

@@ -2825,6 +2825,8 @@ app.whenReady().then(async () => {
// 启动时检测更新(不阻塞启动)
checkForUpdatesOnStartup()
await httpService.autoStart()
app.on('activate', () => {
if (BrowserWindow.getAllWindows().length === 0) {
mainWindow = createWindow()