裁判系统回放代码调整

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() {
if (this.playSpeedIndex < this.playSpeedList.length - 1) {
this.playSpeedIndex++;
if (this.isPlaying) {
//
playingPause({}).then(res=>{
this.isPlaying = false;
setPlaySpeed({level:this.playSpeedList[this.playSpeedIndex].level}).then(res=>{
});
});
// if (this.isPlaying) {
// //
// playingPause({}).then(res=>{
// this.isPlaying = false;
// setPlaySpeed({level:this.playSpeedList[this.playSpeedIndex].level}).then(res=>{
// });
// });
} else {
setPlaySpeed({level:this.playSpeedList[this.playSpeedIndex].level}).then(res=>{
});
}
// } else {
setPlaySpeed({level:this.playSpeedList[this.playSpeedIndex].level}).then(res=>{
});
// }
}
},
minusSpeed() {
if (this.playSpeedIndex > 0) {
this.playSpeedIndex--;
if (this.isPlaying) {
//
playingPause({}).then(res=>{
this.isPlaying = false;
setPlaySpeed({level:this.playSpeedList[this.playSpeedIndex].level}).then(res=>{
});
});
} else {
setPlaySpeed({level:this.playSpeedList[this.playSpeedIndex].level}).then(res=>{
});
}
// if (this.isPlaying) {
// //
// playingPause({}).then(res=>{
// this.isPlaying = false;
// setPlaySpeed({level:this.playSpeedList[this.playSpeedIndex].level}).then(res=>{
// });
// });
// } else {
setPlaySpeed({level:this.playSpeedList[this.playSpeedIndex].level}).then(res=>{
});
// }
}
},