🐛 监控空数据判断

This commit is contained in:
yeyang
2023-05-23 22:50:18 +08:00
parent c122ee1cd2
commit fc465d2df4

View File

@@ -58,7 +58,7 @@ export class NewState extends plugin {
])
// 渲染数据
let data = {
chartData: JSON.stringify(common.checkIfEmpty(State.chartData, 'echarts_theme') ? undefined : State.chartData),
chartData: JSON.stringify(common.checkIfEmpty(State.chartData, ['echarts_theme', 'cpu', 'ram']) ? undefined : State.chartData),
// 头像
portrait: e.bot?.avatar ?? `https://q1.qlogo.cn/g?b=qq&s=0&nk=${this.Bot.uin}`,
// 运行时间