pref:点击手机登陆后日志优化

This commit is contained in:
zdl
2025-11-26 11:43:16 +08:00
parent 7a2c73f3ca
commit 7b4c4be7bf
5 changed files with 8 additions and 34 deletions

View File

@@ -322,16 +322,6 @@ export default function AuthFormContent() {
}
if (response.ok && data.success) {
// ⚡ Mock 模式:先在前端侧写入 localStorage确保时序正确
if (process.env.REACT_APP_ENABLE_MOCK === 'true' && data.user) {
setCurrentUser(data.user);
logger.debug('AuthFormContent', '前端侧设置当前用户(Mock模式)', {
userId: data.user?.id,
phone: data.user?.phone,
mockMode: true
});
}
// 更新session
await checkSession();