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) {