style: 优化个人中心在线设备列表

This commit is contained in:
xlsea
2025-04-29 20:27:55 +08:00
parent 74c621df6f
commit 5de60e2a83
3 changed files with 38 additions and 15 deletions

View File

@ -535,11 +535,6 @@ function forceUpdateCharts() {
onMounted(async () => {
try {
await getCacheInfo();
// 确保图表被渲染后,再次尝试强制更新
setTimeout(() => {
forceUpdateCharts();
}, 500);
} catch {
fetchError.value = '初始化数据失败,请尝试刷新';
}
@ -638,9 +633,7 @@ onUnmounted(() => {
<NGrid :cols="2" :x-gap="16" :y-gap="16" responsive="screen" item-responsive>
<NGi span="0:24 1000:12">
<NCard title="命令统计" :bordered="false" class="chart-card card-wrapper">
<NSpin :show="loading">
<div ref="commandChartRef" class="h-360px overflow-hidden"></div>
</NSpin>
<div ref="commandChartRef" class="h-360px overflow-hidden"></div>
</NCard>
</NGi>
<NGi span="0:24 1000:12">