mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-07 01:46:44 +08:00
修改传递参数变量
This commit is contained in:
@@ -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); //添加到本地存储中
|
||||
|
||||
Reference in New Issue
Block a user