Commit 8dff4385 authored by liujiangnan's avatar liujiangnan

debug

parent d0d4798a
...@@ -42,7 +42,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -42,7 +42,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
bar.progress = 1; bar.progress = 1;
try { try {
await Promise.race([ await Promise.race([
this.asyncCountDown(progress, 10), this.asyncCountDown(progress, 3),
this.checkPage() this.checkPage()
]); ]);
this.step = 1; this.step = 1;
...@@ -89,7 +89,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -89,7 +89,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
window["courseware"].closeOsmoFingerRead(); window["courseware"].closeOsmoFingerRead();
} }
reject(new Error('checkpage timeout')); reject(new Error('checkpage timeout'));
}, 10000) }, 3000)
}); });
const pageId = this.data.pageArr[this.currentPageIdx].pageIdx; const pageId = this.data.pageArr[this.currentPageIdx].pageIdx;
const check = new Promise<void>((resolve, reject) => { const check = new Promise<void>((resolve, reject) => {
......
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