mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-13 04:46:47 +08:00
重新打包问题解决,回退测试代码
This commit is contained in:
@@ -344,7 +344,6 @@
|
||||
var minutes=Math.floor(dateDiff/(1000))//计算相差秒数,分钟记录的太大,经常为0
|
||||
postData.testDuration=minutes;
|
||||
apiCourseStudy.saveExam(postData).then(res=>{
|
||||
console.log('接口调用了')
|
||||
if(res.status == 200) {
|
||||
this.studyItemId=res.result.studyItemId;
|
||||
this.scoreShow=true;
|
||||
@@ -357,16 +356,13 @@
|
||||
let lastExecTime = 0;
|
||||
return function (...args) {
|
||||
const now = Date.now();
|
||||
console.log(now,'now')
|
||||
if (now - lastExecTime >= delay) {
|
||||
console.log('执行了')
|
||||
func.apply(this, args);
|
||||
lastExecTime = now;
|
||||
}
|
||||
};
|
||||
},
|
||||
present(){
|
||||
console.log('执行了2')
|
||||
let $this=this;
|
||||
let score=this.countTest();
|
||||
//console.log(score)
|
||||
|
||||
Reference in New Issue
Block a user