feat(passport-invite): 优化新用户扫码邀请加入流程

- 扫码进入邀请页面时保存邀请 token 到本地存储
- 新增登录状态检测,未登录用户点击快速加入时保存邀请信息并跳转登录页
- 登录成功后返回邀请页自动执行加入应用操作,提升用户体验
- 支持已登录用户直接加入应用,简化流程
- 增加清理 pending 邀请数据的方法,防止数据残留
- 监听页面显示事件,处理登录返回后自动操作
- 调整接口请求逻辑,确保携带最新的邀请和授权数据
- 更新项目配置,注册邀请页面路径信息
This commit is contained in:
2026-04-11 23:33:55 +08:00
parent 371b478e33
commit 7ea0406336
4 changed files with 171 additions and 10 deletions

View File

@@ -22,7 +22,18 @@
"usedAt": 1775908159660,
"industryId": "all"
}
],
"f2494c1730eb411aac709ec2751d60fc": [
{
"expertId": "SeniorDeveloper",
"name": "Will",
"profession": "高级开发工程师",
"avatarUrl": "https://acc-1258344699.cos.accelerate.myqcloud.com/workbuddy/experts/avatars/02-Engineering/SeniorDeveloper/SeniorDeveloper.png",
"promptUrl": "https://acc-1258344699.cos.accelerate.myqcloud.com/workbuddy/experts/experts/02-Engineering/SeniorDeveloper/SeniorDeveloper_zh.md",
"usedAt": 1775921148885,
"industryId": "all"
}
]
},
"lastUpdated": 1775910071224
"lastUpdated": 1775921440281
}