feat: 访问日志表格增加 PSK 版本和 User-Agent 列
This commit is contained in:
@@ -43,7 +43,17 @@
|
||||
<el-table-column prop="method" label="方法" width="60" />
|
||||
<el-table-column prop="path" label="路径" min-width="160" />
|
||||
<el-table-column prop="email" label="邮箱" width="160" />
|
||||
<el-table-column prop="clientIp" label="IP" width="130" />
|
||||
<el-table-column prop="clientIp" label="IP" width="120" />
|
||||
<el-table-column prop="pskVersion" label="PSK" width="50">
|
||||
<template #default="scope">
|
||||
<el-tag v-if="scope.row.pskVersion" size="small" type="info">{{ scope.row.pskVersion }}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="User-Agent" min-width="140">
|
||||
<template #default="scope">
|
||||
<span class="text-xs text-muted">{{ scope.row.userAgent || '-' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="状态" width="70">
|
||||
<template #default="scope">
|
||||
<el-tag size="small" :type="scope.row.success ? 'success' : 'danger'">{{ scope.row.statusCode }}</el-tag>
|
||||
@@ -93,3 +103,7 @@ const fetchStats = async () => {
|
||||
|
||||
onMounted(() => { fetchLogs(); fetchStats() })
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.text-muted { color: #909399; }
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user