Parcourir la source

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

lmx il y a 3 jours
Parent
commit
cb23cc8737
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);