@if (auditLogs.length === 0) {
暂无日志
} @else {
时间
用户
动作
资源
详情
IP
@for (log of auditLogs; track log.id) {
{{ formatDate(log.createdAt) }}
{{ log.actorUsername || '匿名' }}
{{ actionText(log.action) }}
{{ log.resourceType || '-' }} {{ log.resourceId || '' }}
{{ detailsText(log) }}
{{ log.ipAddress || '-' }}
}
}