裁判系统回放代码调整

This commit is contained in:
joylink_cuiweidong 2020-06-05 14:53:18 +08:00
parent 377473ea4c
commit 7c76ba9021

View File

@ -86,35 +86,35 @@ export default {
addSpeed() { addSpeed() {
if (this.playSpeedIndex < this.playSpeedList.length - 1) { if (this.playSpeedIndex < this.playSpeedList.length - 1) {
this.playSpeedIndex++; this.playSpeedIndex++;
if (this.isPlaying) { // if (this.isPlaying) {
// // //
playingPause({}).then(res=>{ // playingPause({}).then(res=>{
this.isPlaying = false; // this.isPlaying = false;
setPlaySpeed({level:this.playSpeedList[this.playSpeedIndex].level}).then(res=>{ // setPlaySpeed({level:this.playSpeedList[this.playSpeedIndex].level}).then(res=>{
}); // });
}); // });
} else { // } else {
setPlaySpeed({level:this.playSpeedList[this.playSpeedIndex].level}).then(res=>{ setPlaySpeed({level:this.playSpeedList[this.playSpeedIndex].level}).then(res=>{
}); });
} // }
} }
}, },
minusSpeed() { minusSpeed() {
if (this.playSpeedIndex > 0) { if (this.playSpeedIndex > 0) {
this.playSpeedIndex--; this.playSpeedIndex--;
if (this.isPlaying) { // if (this.isPlaying) {
// // //
playingPause({}).then(res=>{ // playingPause({}).then(res=>{
this.isPlaying = false; // this.isPlaying = false;
// setPlaySpeed({level:this.playSpeedList[this.playSpeedIndex].level}).then(res=>{
// });
// });
// } else {
setPlaySpeed({level:this.playSpeedList[this.playSpeedIndex].level}).then(res=>{ setPlaySpeed({level:this.playSpeedList[this.playSpeedIndex].level}).then(res=>{
}); });
}); // }
} else {
setPlaySpeed({level:this.playSpeedList[this.playSpeedIndex].level}).then(res=>{
});
}
} }
}, },