fix(register): 优化经销商注册流程中的邀请关系绑定逻辑

- 引入用户状态管理store以获取用户信息
- 重构邀请关系绑定逻辑,支持异步重试机制
- 使用Promise缓存防止重复请求
- 从localStorage和用户状态中获取tenantId和userId
- 在注册成功后主动获取用户信息确保数据完整
- 注释掉开发环境API配置以避免冲突
This commit is contained in:
2026-01-22 14:26:09 +08:00
parent 49c8d40e75
commit b9d2648e6f
2 changed files with 41 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
VITE_APP_NAME=后台管理(开发环境)
VITE_API_URL=http://127.0.0.1:9200/api
#VITE_API_URL=http://127.0.0.1:9200/api
#VITE_SERVER_API_URL=http://127.0.0.1:8000/api