Commit baece42b authored by limingzhe's avatar limingzhe

feat: 销毁处理

parent f0cf5a9d
No preview for this file type
......@@ -600,11 +600,17 @@ cc.Class({
console.log('para: ', para);
cw.openOsmoHandwriting(para);
this.isStartTesting = true;
},
//结束检测
endTesting() {
if (!this.isStartTesting) {
return;
}
const cw = window.courseware;
if (!cw || !cw.closeOsmoHandwriting) {
......@@ -4943,5 +4949,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