mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 09:20:22 +08:00
fix(usage): 完善 cache-affinity 时间线的用户名回退与模型空值兜底
- 当 auth 用户查询失败时回退到历史 username,避免时间线丢失用户信息 - SQL 投影对 usage.model 使用 COALESCE 兜底空值 - IntervalTimelineCard 在刷新间隔为 0 时跳过定时刷新 - Usage 页面关闭时间线卡片的自动轮询
This commit is contained in:
@@ -347,6 +347,9 @@ function handleVisibilityChange() {
|
||||
stopRefreshTimer()
|
||||
return
|
||||
}
|
||||
if (!props.refreshIntervalMs || props.refreshIntervalMs <= 0) {
|
||||
return
|
||||
}
|
||||
void loadData()
|
||||
scheduleNextRefresh()
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
:title="intervalTimelineTitle"
|
||||
:is-admin="isAdminPage"
|
||||
:hours="intervalTimelineHours"
|
||||
:refresh-interval-ms="30000"
|
||||
:refresh-interval-ms="0"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user