Browse Source

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

lmx 3 days ago
parent
commit
cb23cc8737
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/course/courseWatchLog/watchLog.vue

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

@@ -887,7 +887,7 @@ export default {
   methods: {
   methods: {
     setToday(){
     setToday(){
       const today = new Date();
       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);
       todayStart.setHours(0, 0, 0, 0);
       const todayEnd = new Date(today);
       const todayEnd = new Date(today);
       todayEnd.setHours(23, 59, 59, 999);
       todayEnd.setHours(23, 59, 59, 999);