Merge branch 'zcwyMaster' into 'dev0731'

修改传递参数变量

See merge request !14
This commit is contained in:
joshen
2023-11-20 17:31:46 +08:00

View File

@@ -1370,7 +1370,7 @@
let sen = Math.round(m / 1000); //计算秒数 let sen = Math.round(m / 1000); //计算秒数
// 每次添加的是定时器计时的时间 // 每次添加的是定时器计时的时间
duration = duration + sen;//追加的是秒 duration = duration + sen;//追加的是秒
if (sen>=60) { //一分钟保存一次 if (duration >= 60) { //一分钟保存一次
this.saveStudyDuration(duration); this.saveStudyDuration(duration);
} else { } else {
studyUtil.setStudyDuration(duration); //添加到本地存储中 studyUtil.setStudyDuration(duration); //添加到本地存储中