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