소스 검색

我的看课 时间更改为默认最近7天

lmx 3 일 전
부모
커밋
cb23cc8737
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/course/courseWatchLog/watchLog.vue

+ 1 - 1
src/views/course/courseWatchLog/watchLog.vue

@@ -887,7 +887,7 @@ export default {
   methods: {
     setToday(){
       const today = new Date();
-      const todayStart = new Date(today);
+      const todayStart = new Date(today - 60*60*24*7*1000) ;
       todayStart.setHours(0, 0, 0, 0);
       const todayEnd = new Date(today);
       todayEnd.setHours(23, 59, 59, 999);