|
@@ -302,6 +302,17 @@ export const changeAllMode = () => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+// 重置播放倍率
|
|
|
+export const resetBaseRate = () => {
|
|
|
+ const currentItem: any = detailState.times[0];
|
|
|
+ const currentSpeed = currentItem?.measureSpeed ? currentItem.measureSpeed : detailState.baseSpeed;
|
|
|
+ state.speed = currentSpeed
|
|
|
+ state.playIngSpeed = currentSpeed
|
|
|
+ state.activeIndex = 0
|
|
|
+ state.basePlayRate = 1;
|
|
|
+ changeSpeed(currentSpeed)
|
|
|
+}
|
|
|
+
|
|
|
export const changeSpeed = (speed: number, isSave: boolean = true) => {
|
|
|
// console.log('速度设置',speed,isSave)
|
|
|
// const route: any = router.currentRoute.value
|