Skip to content

Commit 9945ec9

Browse files
committed
Update audit logs to rename column title from '是否使用 API' to 'API Key'
- Changed the column title in the audit logs table for clarity and consistency. - Updated the corresponding display logic to reflect the new title.
1 parent 07f4ae8 commit 9945ec9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pages/audit-logs.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,12 @@ const columns: ColumnType<AuditLog>[] = [
207207
},
208208
},
209209
{
210-
title: '是否使用 API',
210+
title: 'API Key',
211211
dataIndex: ['apiTokens', 'tokenSuffix'],
212212
width: 120,
213213
render: (tokenSuffix?: string) =>
214214
tokenSuffix ? (
215-
<Text className="font-mono text-xs">{tokenSuffix}</Text>
215+
<Text className="font-mono text-xs">****{tokenSuffix}</Text>
216216
) : (
217217
<Text type="secondary">-</Text>
218218
),
@@ -361,7 +361,7 @@ export const AuditLogs = () => {
361361
浏览器: browserInfo,
362362
操作系统: osInfo,
363363
IP地址: log.ip || '-',
364-
是否使用API: log.apiTokens?.tokenSuffix || '-',
364+
'API Key': `****${log.apiTokens?.tokenSuffix || '-'}`,
365365
};
366366
});
367367

0 commit comments

Comments
 (0)