From 1b52a63164449e7ef798f6ceb235f54c41115655 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Mon, 4 Aug 2025 16:36:51 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index d0c93c8..6e7da6f 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -237,7 +237,9 @@ business_type_id: 88, area_id: 13 }) - const currentMonth = String(new Date().getMonth() + 1).padStart(2, '0'); + const monthNum = (new Date()).getMonth() + const currentMonth = monthNum===0?'01':String(new Date().getMonth()).padStart(2, '0'); + const currentMonthData = res.list[currentMonth] || []; currentMonthData.forEach(item => { switch (item.name) {