ソースを参照

修改国内贸易制单日期默认值

caojunjie 3 年 前
コミット
c183d1fa56
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/util/date.js

+ 1 - 1
src/util/date.js

@@ -67,7 +67,7 @@ export function defaultDate(type) {
     ];
   }else if (type == 3){
     return[
-      dateFormat(new Date(date.getFullYear(), date.getMonth(), date.getDate()), "yyyy-MM-dd"),
+      dateFormat(new Date(date.getFullYear(), date.getMonth()-1, 1), "yyyy-MM-dd"),
       dateFormat(new Date((date.getMonth() + 1) === 12?date.getFullYear()+1:date.getFullYear(), (date.getMonth() + 1), date.getDate()), "yyyy-MM-dd")
     ];
   }else {