ソースを参照

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