mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 03:16:42 +08:00
修改小数转型
This commit is contained in:
@@ -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", {
|
||||
|
||||
Reference in New Issue
Block a user