统一角色体系为admin/agent/user,修复代理查询角色错误,添加语言切换和明暗切换
This commit is contained in:
@@ -273,9 +273,8 @@ function formatNumber(num: number) {
|
||||
|
||||
function getRoleName(role: string) {
|
||||
const roles: Record<string, string> = {
|
||||
developer: '开发者',
|
||||
agent: '代理商',
|
||||
admin: '管理员',
|
||||
agent: '代理商',
|
||||
}
|
||||
return roles[role] || role
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user