数据结构优化

This commit is contained in:
李琦
2026-01-20 15:23:37 +08:00
parent 946855bff2
commit cdbd3dc038
14 changed files with 835 additions and 198 deletions

View File

@@ -22,6 +22,7 @@
<tr>
<th>ID</th>
<th>操作人</th>
<th>操作描述</th>
<th>IP地址</th>
<th>归属地</th>
<th>路径</th>
@@ -35,6 +36,7 @@
<tr v-for="log in logs.list" :key="log.id">
<td>{{ log.id }}</td>
<td>{{ log.username }}</td>
<td class="action-description">{{ log.action || `${log.method} ${log.path}` }}</td>
<td class="font-mono text-xs">{{ log.ip }}</td>
<td>{{ log.region || 'Unknown' }}</td>
<td class="log-path">{{ log.path }}</td>
@@ -238,6 +240,15 @@ onMounted(() => {
white-space: nowrap;
}
.action-description {
color: #d4b383;
font-weight: 500;
max-width: 180px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.method-badge {
display: inline-block;
padding: 0.125rem 0.375rem;