fix(web): localize user.role_changed audit label

Adds the missing case so role-change entries display in Chinese
instead of falling through to the generic key→target format.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
saopig1andClaude Opus 4.7 committed 2026-05-27 15:43:09 +08:00
1 parent 780726a4e3
commit c0504d65a5
1 file changed
+1
+1
View File
@@ -1112,6 +1112,7 @@ function describeAction(e: AuditEntry): string {
case 'user.deleted': return `删除用户 ${target}`;
case 'user.password_reset': return `重置 ${target} 的密码`;
case 'user.password_changed': return `修改自己的密码`;
case 'user.role_changed': return `变更 ${target} 的角色`;
default: return `${e.action} → ${target}`;
}
}