From 4db4cfeda23272583cfd9aa21fbe82300af1379f Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Fri, 14 Feb 2025 00:30:34 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8C=20perf:=20format=20datetime=20labe?= =?UTF-8?q?ls=20in=20MessageStat=20component=20#460?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/dashboards/default/components/MessageStat.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dashboard/src/views/dashboards/default/components/MessageStat.vue b/dashboard/src/views/dashboards/default/components/MessageStat.vue index bd5967141..98b568199 100644 --- a/dashboard/src/views/dashboards/default/components/MessageStat.vue +++ b/dashboard/src/views/dashboards/default/components/MessageStat.vue @@ -72,6 +72,11 @@ export default { type: 'datetime', title: { text: '时间' + }, + labels: { + formatter: function (value) { + return new Date(value).toLocaleString(); + } } }, yaxis: {