feat: 更新用户数据目录路径以避免与 Chrome 冲突

This commit is contained in:
2026-03-02 16:38:06 +08:00
parent 71eb6bea7f
commit 33112ea695
4 changed files with 9 additions and 11 deletions

View File

@@ -1,3 +1,6 @@
import { main } from "./src/playwright/browser.ts";
import { main } from './src/playwright/browser.ts';
await main()
import path from 'path';
await main({
userDataDir: path.join(process.cwd(), 'browser-context', 'xhs-browser'),
});