Commit c52fc96b authored by limingzhe's avatar limingzhe

fix: 销毁处理

parent 92fda34b
...@@ -630,11 +630,16 @@ cc.Class({ ...@@ -630,11 +630,16 @@ cc.Class({
console.log('para: ', para); console.log('para: ', para);
cw.openOsmoHandwriting(para); cw.openOsmoHandwriting(para);
this.isStartTesting = true;
}, },
//结束检测 //结束检测
endTesting() { endTesting() {
if (!this.isStartTesting) {
return;
}
const cw = window.courseware; const cw = window.courseware;
if (!cw || !cw.closeOsmoHandwriting) { if (!cw || !cw.closeOsmoHandwriting) {
...@@ -5140,5 +5145,9 @@ cc.Class({ ...@@ -5140,5 +5145,9 @@ cc.Class({
}, },
onDestroy() {
this.isDestroy = true;
this.endTesting();
}
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment