fix: 修复脚本依次执行问题

This commit is contained in:
duanshuwen
2026-03-25 22:03:51 +08:00
parent 15139bd606
commit 280abcecbe
12 changed files with 15 additions and 314 deletions

View File

@@ -24,6 +24,7 @@ const isSameOrigin = (currentUrl, targetUrl) => {
const current = normalizeUrl(currentUrl);
const target = normalizeUrl(targetUrl);
if (!current || !target) return false;
return current.origin === target.origin;
};

Binary file not shown.

Before

Width:  |  Height:  |  Size: 245 KiB

View File

@@ -220,5 +220,6 @@ const navigateToRoomStatusManagement = async (page) => {
process.exitCode = 1;
} finally {
await safeDisconnectBrowser(browser);
process.exit(process.exitCode || 0);
}
})();

View File

@@ -220,5 +220,6 @@ const navigateToRoomStatusManagement = async (page) => {
process.exitCode = 1;
} finally {
await safeDisconnectBrowser(browser);
process.exit(process.exitCode || 0);
}
})();

View File

@@ -169,5 +169,6 @@ const toggleRoomByDateIndex = async (container, { roomType, dateIndex, operation
process.exitCode = 1;
} finally {
await safeDisconnectBrowser(browser);
process.exit(process.exitCode || 0);
}
})();

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

View File

@@ -232,5 +232,6 @@ const toggleRoom = async (page, { roomType, mmdd, operation }) => {
process.exitCode = 1;
} finally {
await safeDisconnectBrowser(browser);
process.exit(process.exitCode || 0);
}
})();

View File

@@ -128,5 +128,6 @@ const isBlankLikePage = (url) => {
}
} catch {}
}
process.exit(process.exitCode || 0);
}
})();

View File

@@ -1,4 +0,0 @@
import log from 'electron-log';
log.info('xc_trace.mjs placeholder: not implemented');
process.exit(0);