@@ -258,7 +273,8 @@ const formContent = ref({
rechatContentSource: 1,
recentMessageQuantityForLlm: 8,
rechatLlmFallback: RECHAT_LLM_FALLBACK.SEND_LOOK_FORWARD_EMOTION,
- onlyRemindBossWithExpectJobType: true
+ onlyRemindBossWithExpectJobType: true,
+ onlyRemindBossWithoutBlockCompanyName: true
}
})
@@ -296,15 +312,17 @@ electron.ipcRenderer.invoke('fetch-config-file-content').then((res) => {
})
const expectJobTypeRegExpStr = ref('')
-async function fetchExpectJobTypeRegExpStr() {
+const blockCompanyNameRegExpStr = ref('')
+async function fetchAutoStartChatConfig() {
await electron.ipcRenderer.invoke('fetch-config-file-content').then((res) => {
expectJobTypeRegExpStr.value = res.config['boss.json']?.expectJobTypeRegExpStr
+ blockCompanyNameRegExpStr.value = res.config['boss.json']?.blockCompanyNameRegExpStr
})
}
-fetchExpectJobTypeRegExpStr()
-mittBus.on('auto-start-chat-with-boss-config-saved', fetchExpectJobTypeRegExpStr)
+fetchAutoStartChatConfig()
+mittBus.on('auto-start-chat-with-boss-config-saved', fetchAutoStartChatConfig)
onUnmounted(() => {
- mittBus.off('auto-start-chat-with-boss-config-saved', fetchExpectJobTypeRegExpStr)
+ mittBus.off('auto-start-chat-with-boss-config-saved', fetchAutoStartChatConfig)
})
const resumeContent = ref(null)