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