Commit 0413fa7a authored by 李维's avatar 李维

fix: 修复排序乱的问题

parent 2af6a8e3
......@@ -1233,7 +1233,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 准备提交的数据
let data: any = {};
const voices = Game.getIns().player.voices
const voices = Game.getIns().player.voices.sort((a, b) => a.questionId - b.questionId);
const details = []
let totalScore = 0;
for(let i = 0; i < voices.length; i++) {
......
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