huangbin 4 rokov pred
rodič
commit
02f7a9734d
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      src/views/report/setup.ts

+ 2 - 1
src/views/report/setup.ts

@@ -30,7 +30,8 @@ export function handleReprotType(context: SetupContext) {
     ])
     // 初始化时间
     function getInitTime() {
-        return moment(new Date(), dateFormat.value)
+        const yesterday = moment().add(-1, 'days')
+        return moment(yesterday, dateFormat.value)
     }
     function getFomateType(): reportCyleTimeType {
         const { key } = selectedReportType.value