Преглед изворни кода

修改10月份传输格式

yuhan пре 1 година
родитељ
комит
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]