修改小数转型

This commit is contained in:
nisen
2023-11-20 15:46:50 +08:00
parent c702208b95
commit 6a811e42bc
3 changed files with 6 additions and 4 deletions

View File

@@ -545,7 +545,7 @@ export default {
let startTime = new Date().getTime();
this.setTimeCase = setTimeout(() => {
let endTime = new Date().getTime();
let totalTime = parseInt((endTime - startTime) / 1000);
let totalTime = Math.round((endTime - startTime) / 1000);
this.cumulativeDuration += totalTime
if(this.cumulativeDuration <= this.defaultMaxTime){
this.$store.dispatch("userTrigger", {