feat: add 'pop out tab as new window' functionality

- Add createWindow IPC for creating secondary windows
- Add PopoutPage for content-only rendering in new windows
- Add multi-window management to electron state
- Add '在新窗口中打开' context menu to tabs
- Fix: Use standard URL path instead of hash for React Router routing
This commit is contained in:
2026-03-21 23:42:48 +08:00
parent 43828a87f0
commit f160adbdb1
9 changed files with 198 additions and 1 deletions

View File

@@ -53,6 +53,7 @@ export interface ElectronAPI {
terminalStop: () => Promise<{ success: boolean; error?: string }>
terminalGetStatus: () => Promise<{ running: boolean; port: number }>
terminalGetPort: () => Promise<{ port: number }>
createWindow: (tabData: { route: string; title: string }) => Promise<{ success: boolean; windowId?: number; error?: string }>
}
declare global {