debug
This commit is contained in:
@@ -425,7 +425,7 @@ const formatDate = (dateStr: string) => {
|
||||
}
|
||||
};
|
||||
|
||||
const formatRole = (role: string) => {
|
||||
const formatRole = (role?: string) => {
|
||||
const map: Record<string, string> = {
|
||||
'ADMIN': '管理员',
|
||||
'DECISION_MAKER': '决策人',
|
||||
@@ -433,6 +433,7 @@ const formatRole = (role: string) => {
|
||||
'GRID_WORKER': '网格员',
|
||||
'PUBLIC_SUPERVISOR': '公众监督员'
|
||||
};
|
||||
if (!role) return '未知';
|
||||
return map[role] || role;
|
||||
};
|
||||
|
||||
@@ -604,4 +605,4 @@ const handleRejectFeedback = async () => {
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user