Commit 4c33d1b6 authored by limingzhe's avatar limingzhe

fix: debug

parent eeb2f1a8
......@@ -1546,7 +1546,7 @@
},
"component": "",
"_componentId": "60d81OE+nRLtoMukBLWZZu2",
"handler": "exitGame",
"handler": "onBackBtnClick",
"customEventData": ""
},
{
......
......@@ -60,6 +60,10 @@ export default class NewClass extends middleLayerBase {
backBtn.active = true;
}
onBackBtnClick() {
this.exitGame();
}
onHomeworkFinish(callBack, data = null) {
if (!this.token) {
......@@ -81,6 +85,7 @@ export default class NewClass extends middleLayerBase {
}
exitGame(data = null) {
cc.game.removePersistRootNode(this.node);
if (this.token && data) {
this.callNetworkApiPost(`api/dige/v1/user/report`, {
......
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