Ver Fonte

feat: 去掉部分console

TIANYONG há 7 meses atrás
pai
commit
e1762c8186

+ 0 - 2
src/page-instrument/view-detail/smoothAnimation/index.ts

@@ -159,7 +159,6 @@ export function moveSmoothAnimation(progress: number, activeIndex: number) {
    // // 当前的index
    let nowIndex = nextPointsIndex - _numberOfSegments + progressCalcIndex
    // 当前计算的位置和上一次值一样时候不运行
-   console.log('移动000',moveState.oldIndex,nowIndex)
    if (moveState.oldIndex === nowIndex) {
       return
    }
@@ -176,7 +175,6 @@ export function moveSmoothAnimation(progress: number, activeIndex: number) {
       smoothAnimationState.pointsPos.slice(0, nowIndex)
    )
    // 当移动到屏幕最右边时候 就不进行移动了
-   console.log('移动1111',(smoothAnimationState.osdmScrollDom?.scrollLeft || 0) + smoothAnimationState.translateXNum + smoothAnimationState.osdmScrollDomWith,smoothAnimationState.canvasDomWith)
    if (
       (smoothAnimationState.osdmScrollDom?.scrollLeft || 0) + smoothAnimationState.translateXNum + smoothAnimationState.osdmScrollDomWith >=
       smoothAnimationState.canvasDomWith