diff --git a/web-admin/src/views/aiconfig/components/AiCallLogDetailDialog.vue b/web-admin/src/views/aiconfig/components/AiCallLogDetailDialog.vue
index 44a0a81..9bc8a01 100644
--- a/web-admin/src/views/aiconfig/components/AiCallLogDetailDialog.vue
+++ b/web-admin/src/views/aiconfig/components/AiCallLogDetailDialog.vue
@@ -48,8 +48,8 @@
{{ log.streamChunks ?? '-' }}
- 用户 ID
- {{ log.userId || '-' }}
+ 调用用户
+ {{ userDisplay(log) }}
请求 ID
@@ -112,6 +112,15 @@ function formatMs(ms?: number) {
if (ms == null) return '-'
return ms >= 1000 ? `${(ms / 1000).toFixed(2)}s` : `${ms}ms`
}
+
+function userDisplay(log: AiCallLog): string {
+ const name = log.userName
+ const id = log.userId
+ if (name && id) return `${name}(${id})`
+ if (name) return name
+ if (id) return `-(ID: ${id})`
+ return '-'
+}