Recruitment_site/offer_frontend
TianyangZhang 12697c5750 feat: 登入页面支持求职者和管理员两种角色
前端改动:
- LoginView.vue 添加角色选择(求职者/管理员)
- 求职者使用邮箱验证码登入
- 管理员使用用户名密码登入
- 两种方式在同一页面,通过角色选项卡切换

后端改动:
- CustomTokenObtainPairView 改为支持两种登入方式
- 若提供 email+code 则使用邮箱验证码登入
- 若提供 username+password 则使用用户名密码登入

设计:
- 求职者可自助注册和邮箱验证码登入
- 管理员由 superadmin 创建,使用用户名密码登入
- 两种登入都返回同样的 JWT token

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-03-25 15:59:30 +08:00
..
.vscode feat: initialize Vue3 frontend with router, pinia, element-plus 2026-03-25 08:37:09 +08:00
public feat: initialize Vue3 frontend with router, pinia, element-plus 2026-03-25 08:37:09 +08:00
src feat: 登入页面支持求职者和管理员两种角色 2026-03-25 15:59:30 +08:00
.gitignore feat: initialize Vue3 frontend with router, pinia, element-plus 2026-03-25 08:37:09 +08:00
README.md feat: initialize Vue3 frontend with router, pinia, element-plus 2026-03-25 08:37:09 +08:00
index.html feat: initialize Vue3 frontend with router, pinia, element-plus 2026-03-25 08:37:09 +08:00
package-lock.json feat: initialize Vue3 frontend with router, pinia, element-plus 2026-03-25 08:37:09 +08:00
package.json feat: initialize Vue3 frontend with router, pinia, element-plus 2026-03-25 08:37:09 +08:00
vite.config.js refactor: 调整岗位、应用等模块,适配三栏设计 2026-03-25 13:13:09 +08:00

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.