插件看板数据更改

This commit is contained in:
liuwei
2025-03-19 13:53:45 +08:00
parent 9517338351
commit 3258584958
3 changed files with 5 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ class MessageSummaryPlugin(MessagePluginInterface):
@property
def name(self) -> str:
return "message_summary"
return "群聊消息总结"
@property
def version(self) -> str:

View File

@@ -17,7 +17,7 @@ class StatsCollectorPlugin(PluginInterface):
@property
def name(self) -> str:
return "command collector"
return "群聊指令数据记录"
@property
def version(self) -> str:

View File

@@ -56,7 +56,7 @@
<span>平均响应时间</span>
</div>
<div style="font-size: 24px; text-align: center;">
{{ avgResponseTime.toFixed(2) }} ms
{{ typeof avgResponseTime === 'number' ? avgResponseTime.toFixed(2) : '0.00' }} ms
</div>
</el-card>
</el-col>
@@ -136,7 +136,7 @@
successRate: 0,
activeUsers: 0,
activeGroups: 0,
avgResponseTime: 0,
avgResponseTime: 0, // 确保这里初始化为数字
topUsers: [],
topGroups: [],
topPlugins: [],
@@ -163,7 +163,7 @@
this.successRate = parseFloat(data.success_rate) || 0;
this.activeUsers = data.active_users || 0;
this.activeGroups = data.active_groups || 0;
this.avgResponseTime = data.avg_response_time || 0;
this.avgResponseTime = parseFloat(data.avg_response_time) || 0;
this.topUsers = data.top_users || [];
this.topGroups = data.top_groups || [];
this.topPlugins = data.top_plugins || [];