Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
fix: 修复了小红书登录会打开开发者中心的问题
gaoSir58300e1e0e7e
diff --git a/electron/main/index.ts b/electron/main/index.tsindex 2fb3f296..f7761169 100644--- a/electron/main/index.ts+++ b/electron/main/index.ts@@ -93,7 +93,7 @@ async function createWindow() {win?.show();// 在主窗口显示后再打开开发者工具if (VITE_DEV_SERVER_URL) {- win?.webContents.openDevTools({ mode: 'right' });+ win?.webContents.openDevTools({ mode: 'bottom' });}setTimeout(() => {if (splashWindow) {diff --git a/electron/plat/xiaohongshu/index.ts b/electron/plat/xiaohongshu/index.tsindex 5c828fc7..56b323d9 100644--- a/electron/plat/xiaohongshu/index.ts+++ b/electron/plat/xiaohongshu/index.ts@@ -136,8 +136,6 @@ export class XiaohongshuService {partition: string,): Promise<Electron.Cookie[]> {return new Promise((resolve, reject) => {- console.log('----------------------');- this.win!.webContents.openDevTools();// Monitor cookie status with intervalthis.cookieIntervalList[winContentsId] = setInterval(async () => {try {