fix: 修复 TypeScript 编译错误

- browser.ts: 移除 loadURL 不支持的 timeout 参数
- ipc.ts: 修正 browserScroll direction 参数类型断言
This commit is contained in:
thzxx
2026-04-18 09:42:41 +08:00
parent 17d684cbf5
commit 8ea7a056f3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ function getAgentBrowser(): BrowserWindow {
export async function browserOpen(url: string): Promise<{ success: boolean; title?: string; url?: string; error?: string }> {
try {
const win = getAgentBrowser();
await win.loadURL(url, { timeout: 15000 });
await win.loadURL(url);
await new Promise(r => setTimeout(r, 1000)); // 等待页面渲染
return {
success: true,