refactor: 统一端口配置,通过 IPC 获取而非硬编码

This commit is contained in:
2026-03-13 21:20:31 +08:00
parent 1be470f45b
commit f692961823
4 changed files with 15 additions and 5 deletions

View File

@@ -43,6 +43,7 @@ export interface ElectronAPI {
xcOpenCodeWebStart: () => Promise<{ success: boolean; error?: string }>
xcOpenCodeWebStop: () => Promise<{ success: boolean; error?: string }>
xcOpenCodeWebGetStatus: () => Promise<{ running: boolean; port: number }>
xcOpenCodeWebGetPort: () => Promise<{ port: number }>
}
declare global {