yuhan 1 год назад
Родитель
Сommit
6f369c8cf3
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/views/module_kzks/dashboard/Analysis.vue

+ 1 - 1
src/views/module_kzks/dashboard/Analysis.vue

@@ -384,7 +384,7 @@
         const now = new Date()
         const year = now.getFullYear(); // 年
         const month = now.getMonth() + 1; // 月
-        const monthBetter = month > 10 ? month : '0' + month
+        const monthBetter = month >= 10 ? month : '0' + month
         const beginDate = `${year}-01`
         const endDate = `${year}-${monthBetter}`
         this.dateValue = [beginDate, endDate]