浏览代码

修改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]