diff --git a/README.md b/README.md index 4e4bdbd..dff46d4 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,6 @@ Boos直聘助手, 皆在减少投递简历的麻烦, 和提高投递简历的效率,技术栈使用VIte + Vue3 + element-plus, 代码由 Vite 打包无加密混淆最小化,开源在 Github 欢迎前来Pr > 本项目处于积极维护状态 -> -> 测试阶段,目前可以正常筛选,自动打招呼并且进行投递,统计,GPT等功能制作中 ## 项目预览 @@ -26,6 +24,15 @@ Boos直聘助手, 皆在减少投递简历的麻烦, 和提高投递简历的效 > 目前正在测试自动编译阶段,一切皆为测试版本 +### 问题解答/已知问题 + +- GPT给出非JSON格式的消息,导致报错 + - 花钱用GPT4 +- 点击导航栏切换不会挂载界面啊 + - 自己手动刷新,增加检测反而会有更多问题 +- 页面加载不出来,或者无故多次刷新 + - 大概率不是我脚本的问题,我也不知道原因,但不影响使用 + ## 未来计划 - [x] 优化UI去除广告 diff --git a/README.user.md b/README.user.md index 65d26bb..b96c8ab 100644 --- a/README.user.md +++ b/README.user.md @@ -8,15 +8,22 @@ Boos直聘助手, 皆在减少投递简历的麻烦, 和提高投递简历的效 [202x.x.x.alpha] 为测试版本,同步github的master分支,每日自动构建 > 本项目处于积极维护状态 -> -> 测试阶段,目前可以正常筛选,自动打招呼并且进行投递,统计,GPT等功能制作中 -### 项目预览 +## 项目预览 [![统计界面](https://s21.ax1x.com/2024/04/02/pFHa3ZD.png)](https://imgse.com/i/pFHa3ZD) [![配置界面](https://s21.ax1x.com/2024/04/02/pFHa8de.png)](https://imgse.com/i/pFHa8de) [![日志界面](https://s21.ax1x.com/2024/04/02/pFHalqO.png)](https://imgse.com/i/pFHalqO) +### 问题解答/已知问题 + +- GPT给出非JSON格式的消息,导致报错 + - 花钱用GPT4 +- 点击导航栏切换不会挂载界面啊 + - 自己手动刷新,增加检测反而会有更多问题 +- 页面加载不出来,或者无故多次刷新 + - 大概率不是我脚本的问题,我也不知道原因,但不影响使用 + ### 未来计划 - [x] 优化UI去除广告 diff --git a/src/components/form/formAi.vue b/src/components/form/formAi.vue new file mode 100644 index 0000000..3dab581 --- /dev/null +++ b/src/components/form/formAi.vue @@ -0,0 +1,29 @@ + + + + + diff --git a/src/components/icon/settings.vue b/src/components/icon/settings.vue index d8ab3a1..6c16aea 100644 --- a/src/components/icon/settings.vue +++ b/src/components/icon/settings.vue @@ -12,3 +12,5 @@ + + diff --git a/src/main.ts b/src/main.ts index 2472231..849525d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -91,24 +91,24 @@ async function start(e?: any) { logger.debug("开始运行"); start(); -const _wr = function (type: keyof History) { - var orig = history[type]; - return function () { - // @ts-ignore - var rv = orig.apply(this, arguments); - var e = new Event(type); - // @ts-ignore - e.arguments = arguments; - window.dispatchEvent(e); - return rv; - }; -}; -history.pushState = _wr("pushState"); -history.replaceState = _wr("replaceState"); -window.addEventListener("popstate", start); -window.addEventListener("hashchange", start); -window.addEventListener("replaceState", start); -window.addEventListener("pushState", start); +// const _wr = function (type: keyof History) { +// var orig = history[type]; +// return function () { +// // @ts-ignore +// var rv = orig.apply(this, arguments); +// var e = new Event(type); +// // @ts-ignore +// e.arguments = arguments; +// window.dispatchEvent(e); +// return rv; +// }; +// }; +// history.pushState = _wr("pushState"); +// history.replaceState = _wr("replaceState"); +// window.addEventListener("popstate", start); +// window.addEventListener("hashchange", start); +// window.addEventListener("replaceState", start); +// window.addEventListener("pushState", start); declare global { interface Window { diff --git a/src/pages/web/geek/job/ai.vue b/src/pages/web/geek/job/ai.vue index 240443f..5b65253 100644 --- a/src/pages/web/geek/job/ai.vue +++ b/src/pages/web/geek/job/ai.vue @@ -1,70 +1,64 @@ diff --git a/src/pages/web/geek/job/ai/greeting.vue b/src/pages/web/geek/job/ai/config.vue similarity index 73% rename from src/pages/web/geek/job/ai/greeting.vue rename to src/pages/web/geek/job/ai/config.vue index 583cfd2..8b99942 100644 --- a/src/pages/web/geek/job/ai/greeting.vue +++ b/src/pages/web/geek/job/ai/config.vue @@ -9,19 +9,23 @@ import { ElLink, } from "element-plus"; import { useModel } from "../hooks/useModel"; -import { useFormData } from "../hooks/useForm"; -import { ref } from "vue"; +import { useFormData, formInfoData } from "../hooks/useForm"; +import { onMounted, ref } from "vue"; +import { FormDataAi, FormData } from "@/types/formData"; const { formData, confSaving, defaultFormData } = useFormData(); const { modelData } = useModel(); +const props = defineProps<{ + data: "aiGreeting" | "aiFiltering" | "aiReply"; +}>(); const show = defineModel({ required: true }); -const val = ref(formData.aiGreeting.word); -const model = ref(formData.aiGreeting.model); +const val = ref(formData[props.data].word); +const model = ref(formData[props.data].model);