diff --git a/src/views/databoard/components/GasChart.vue b/src/views/databoard/components/GasChart.vue index a808d48b..9daab55c 100644 --- a/src/views/databoard/components/GasChart.vue +++ b/src/views/databoard/components/GasChart.vue @@ -246,9 +246,7 @@ export default { .map((_, index) => { const today = new Date(); const dtimestamp = today - (index+1) * 24 * 60 * 60 * 1000; - return `${currentMonth < 10?'0'+currentMonth:currentMonth }.${new Date( - dtimestamp - ).getDate()}`;}).reverse() + return `${new Date(dtimestamp).getMonth()+1}.${new Date(dtimestamp).getDate()}`;}).reverse() }else if (this.chartTime == "月") { if (currentMonth in [1, 3, 5, 7, 8, 10, 12]) { days = 31;