修改传递参数变量

This commit is contained in:
nisen
2023-11-20 17:31:12 +08:00
parent 58645d9718
commit 1f635ae528

View File

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