فهرست منبع

我的看课 时间更改为默认最近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);