From fea602439a3c9589bee078bfa9ff1e7efb378d71 Mon Sep 17 00:00:00 2001 From: Charles7c Date: Sat, 11 Nov 2023 00:07:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BB=AA=E8=A1=A8?= =?UTF-8?q?=E7=9B=98=E8=AE=BF=E9=97=AE=E8=B6=8B=E5=8A=BF=E5=8C=BA=E5=9D=97?= =?UTF-8?q?=20y=20=E8=BD=B4=E6=95=B0=E5=80=BC=E8=BF=87=E5=A4=A7=E6=97=B6?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E5=B1=95=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加 y 轴单位转换逻辑 --- .../views/dashboard/workplace/components/access-trend.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/continew-admin-ui/src/views/dashboard/workplace/components/access-trend.vue b/continew-admin-ui/src/views/dashboard/workplace/components/access-trend.vue index cefff39c..c8133b58 100644 --- a/continew-admin-ui/src/views/dashboard/workplace/components/access-trend.vue +++ b/continew-admin-ui/src/views/dashboard/workplace/components/access-trend.vue @@ -60,7 +60,7 @@ const { chartOption } = useChartOption((isDark) => { return { grid: { - left: '30', + left: '38', right: '0', top: '10', bottom: '50', @@ -114,6 +114,9 @@ axisLabel: { formatter(value: any, idx: number) { if (idx === 0) return value; + if (value >= 1000) { + return `${value / 1000}k`; + } return `${value}`; }, },