fix: 对齐浏览器可信输入并增加端到端门禁

This commit is contained in:
yu committed 2026-10-27 14:18:51 +08:00
1 parent 6adf772987
commit 65591322ee
6 files changed
+146 -22

No files matched your search

+3 -2
View File
@@ -11,6 +11,7 @@ import { fixtureUrl, startFixtureServer, stopFixtureServer } from "./fixture/ser
let mainWindow: BrowserWindow | null = null;
function createWindow(): void {
const e2e = process.env.RPA_E2E === "1";
mainWindow = new BrowserWindow({
width: 1440,
height: 900,
@@ -33,7 +34,7 @@ function createWindow(): void {
}
});
mainWindow.on("ready-to-show", () => mainWindow?.show());
mainWindow.on("ready-to-show", () => { if (!e2e) mainWindow?.show(); });
mainWindow.on("closed", () => {
mainWindow = null;
});
@@ -115,7 +116,7 @@ if (!gotLock) {
app.whenReady().then(async () => {
try {
await startFixtureServer();
await startFixtureServer(Number(process.env.RPA_FIXTURE_PORT || 17863));
} catch (error) {
console.warn("local fixture server unavailable", error);
}