Explorar o código

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

caojunjie %!s(int64=3) %!d(string=hai) anos
pai
achega
c183d1fa56
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {