This commit is contained in:
@@ -877,9 +877,9 @@ const fetchUserInfo = async () => {
|
||||
userInfo.value = {
|
||||
name: user.full_name || user.username || '未命名',
|
||||
position: user.position_name || (user.role === 'admin' ? '管理员' : user.role === 'trainer' ? '培训师' : '学员'),
|
||||
level: 5, // TODO: 从用户统计数据获取
|
||||
exp: 2350, // TODO: 从用户统计数据获取
|
||||
nextLevelExp: 3000, // TODO: 从用户统计数据获取
|
||||
level: 1, // TODO: 从用户统计数据获取
|
||||
exp: 0, // TODO: 从用户统计数据获取
|
||||
nextLevelExp: 1000, // TODO: 从用户统计数据获取
|
||||
avatar: user.avatar_url || '',
|
||||
role: user.role || 'trainee', // 保存用户角色
|
||||
phone: user.phone || '' // 保存用户手机号
|
||||
|
||||
Reference in New Issue
Block a user