裁判系统回放代码调整
This commit is contained in:
parent
377473ea4c
commit
7c76ba9021
@ -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=>{
|
||||
});
|
||||
// }
|
||||
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user