Commit 34c15a0a authored by liujiangnan's avatar liujiangnan

fix: 读音并行

parent 79ee702c
......@@ -73,9 +73,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
console.log('this.currentPageIdx = ' + this.currentPageIdx);
console.log('this.currentPartIdx = ' + this.currentPartIdx);
const ps1 = this.asyncPlayAudioByUrl(this.data.pageArr[this.currentPageIdx].hotZoneItemArr[this.currentPartIdx].audio_url);
const ps2 = this.checkPart();
await Promise.all([ps1, ps2]);
this.asyncPlayAudioByUrl(this.data.pageArr[this.currentPageIdx].hotZoneItemArr[this.currentPartIdx].audio_url).then();
await this.checkPart();
const pageIdxMap = this.data.pageArr.map((page, pageIdx) => {
return page.hotZoneItemArr.map(item => pageIdx);
......
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