From c018fb03ea032d45e9c56246f1b148a140b7dd63 Mon Sep 17 00:00:00 2001 From: geekgeekrun Date: Sat, 28 Sep 2024 09:59:28 +0800 Subject: [PATCH] fix any chat mode isn't taking effect --- packages/geek-auto-start-chat-with-boss/index.mjs | 3 ++- .../src/page/Configuration/GeekAutoStartChatWithBoss.vue | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/geek-auto-start-chat-with-boss/index.mjs b/packages/geek-auto-start-chat-with-boss/index.mjs index fb0a381..0c2be8c 100644 --- a/packages/geek-auto-start-chat-with-boss/index.mjs +++ b/packages/geek-auto-start-chat-with-boss/index.mjs @@ -57,7 +57,7 @@ export async function initPuppeteer () { const bossCookies = readStorageFile('boss-cookies.json') const bossLocalStorage = readStorageFile('boss-local-storage.json') -const targetCompanyList = readConfigFile('target-company-list.json') +const targetCompanyList = readConfigFile('target-company-list.json').filter(it => !!it.trim()); const localStoragePageUrl = `https://www.zhipin.com/desktop/` const recommendJobPageUrl = `https://www.zhipin.com/web/geek/job-recommend` @@ -168,6 +168,7 @@ async function toRecommendPage (hooks) { ) : jobListData.findIndex( it => !blockBossNotNewChat.has(it.encryptBossId) ) + debugger let hasReachLastPage = false diff --git a/packages/ui/src/renderer/src/page/Configuration/GeekAutoStartChatWithBoss.vue b/packages/ui/src/renderer/src/page/Configuration/GeekAutoStartChatWithBoss.vue index 3724765..1a6f350 100644 --- a/packages/ui/src/renderer/src/page/Configuration/GeekAutoStartChatWithBoss.vue +++ b/packages/ui/src/renderer/src/page/Configuration/GeekAutoStartChatWithBoss.vue @@ -12,7 +12,10 @@ > - + { formContent.value.expectCompanies = res.config['target-company-list.json'].join(',') }) -const formRules = { -} +const formRules = {} const formRef = ref>() const handleSubmit = async () => {