fix: 修复 TypeScript 编译错误
- browser.ts: 移除 loadURL 不支持的 timeout 参数 - ipc.ts: 修正 browserScroll direction 参数类型断言
This commit is contained in:
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user