前端改动: RegisterView.vue: - 改为传统密码注册(邮箱+用户名+手机号+密码) - 移除邮箱验证码逻辑 - 注册成功后自动登入并跳转到首页 LoginView.vue: - 求职者和管理员两个角色选项卡 - 求职者支持两种登入方式: * 邮箱/用户名 + 密码 * 邮箱 + 验证码(快速登入) - 登入方式通过子选项卡切换 - 添加"忘记密码"链接指向密码重置页面 - 管理员仍使用用户名+密码登入 ResetPasswordView.vue (新建): - 两步流程: 1. 输入邮箱 → 获取验证码 → 输入验证码 2. 输入新密码 → 确认密码 → 重置完成 - 验证码倒计时和重新获取 - 密码重置成功后跳转到登入页 API更新 (auth.js): - 修改 register() 使用 axios 而非 client - 新增 resetPassword() - 请求密码重置 - 新增 confirmResetPassword() - 确认密码重置 路由更新 (router/index.js): - 新增 /forgot-password 路由 设计特点: - 统一的多种登入方式UI - 清晰的密码重置流程 - 保留邮箱验证码快速登入选项 Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| .vscode | ||
| public | ||
| src | ||
| .gitignore | ||
| README.md | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| vite.config.js | ||
README.md
Vue 3 + Vite
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.
Learn more about IDE Support for Vue in the Vue Docs Scaling up Guide.