Compare commits
2 Commits
9606d4d9e1
...
2114880e47
| Author | SHA1 | Date | |
|---|---|---|---|
| 2114880e47 | |||
| c7ce916cca |
@@ -27,9 +27,15 @@ watch(() => props.isExpanded, (expanded, wasExpanded) => {
|
||||
}
|
||||
})
|
||||
|
||||
// 当 test 通过后,props.model.enabled 会更新,需要同步到 editingModel
|
||||
watch(() => props.model.enabled, (enabled) => {
|
||||
editingModel.value.enabled = enabled
|
||||
})
|
||||
|
||||
const status = computed(() => {
|
||||
if (!props.model.api_key || !props.model.model) return 'empty'
|
||||
if (props.model.enabled) return 'available'
|
||||
// 基于 editingModel 计算状态
|
||||
if (!editingModel.value.api_key || !editingModel.value.model) return 'empty'
|
||||
if (editingModel.value.enabled) return 'available'
|
||||
return 'unavailable'
|
||||
})
|
||||
|
||||
|
||||
@@ -137,7 +137,7 @@ const hourlyActivityData = computed(() =>
|
||||
<!-- CONVERSATIONS -->
|
||||
<section class="stats-section">
|
||||
<SectionHeader title="沟通系统" tag="cyan" />
|
||||
<div class="stats-metrics-row">
|
||||
<div class="stats-metrics-grid-4">
|
||||
<div class="stat-bar-item">
|
||||
<div class="stat-bar-label">对话数</div>
|
||||
<div class="stat-bar-value">{{ formatNumber(conversationStats?.totals?.conversations || 0) }}</div>
|
||||
@@ -330,6 +330,12 @@ const hourlyActivityData = computed(() =>
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.stats-metrics-grid-4 {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.stat-bar-item {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border-dim);
|
||||
@@ -356,6 +362,7 @@ const hourlyActivityData = computed(() =>
|
||||
|
||||
.stat-bar-chart {
|
||||
margin-top: 8px;
|
||||
min-height: 30px;
|
||||
}
|
||||
|
||||
.stats-section {
|
||||
|
||||
Reference in New Issue
Block a user