插件看板数据更改
This commit is contained in:
@@ -17,7 +17,7 @@ class MessageSummaryPlugin(MessagePluginInterface):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self) -> str:
|
def name(self) -> str:
|
||||||
return "message_summary"
|
return "群聊消息总结"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def version(self) -> str:
|
def version(self) -> str:
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ class StatsCollectorPlugin(PluginInterface):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self) -> str:
|
def name(self) -> str:
|
||||||
return "command collector"
|
return "群聊指令数据记录"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def version(self) -> str:
|
def version(self) -> str:
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
<span>平均响应时间</span>
|
<span>平均响应时间</span>
|
||||||
</div>
|
</div>
|
||||||
<div style="font-size: 24px; text-align: center;">
|
<div style="font-size: 24px; text-align: center;">
|
||||||
{{ avgResponseTime.toFixed(2) }} ms
|
{{ typeof avgResponseTime === 'number' ? avgResponseTime.toFixed(2) : '0.00' }} ms
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
@@ -136,7 +136,7 @@
|
|||||||
successRate: 0,
|
successRate: 0,
|
||||||
activeUsers: 0,
|
activeUsers: 0,
|
||||||
activeGroups: 0,
|
activeGroups: 0,
|
||||||
avgResponseTime: 0,
|
avgResponseTime: 0, // 确保这里初始化为数字
|
||||||
topUsers: [],
|
topUsers: [],
|
||||||
topGroups: [],
|
topGroups: [],
|
||||||
topPlugins: [],
|
topPlugins: [],
|
||||||
@@ -163,7 +163,7 @@
|
|||||||
this.successRate = parseFloat(data.success_rate) || 0;
|
this.successRate = parseFloat(data.success_rate) || 0;
|
||||||
this.activeUsers = data.active_users || 0;
|
this.activeUsers = data.active_users || 0;
|
||||||
this.activeGroups = data.active_groups || 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.topUsers = data.top_users || [];
|
||||||
this.topGroups = data.top_groups || [];
|
this.topGroups = data.top_groups || [];
|
||||||
this.topPlugins = data.top_plugins || [];
|
this.topPlugins = data.top_plugins || [];
|
||||||
|
|||||||
Reference in New Issue
Block a user