소스 검색

feat: 速度小数位重置问题修复

TIANYONG 1 년 전
부모
커밋
07868763ae
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/page-instrument/header-top/speed/index.tsx

+ 1 - 1
src/page-instrument/header-top/speed/index.tsx

@@ -23,7 +23,7 @@ export default defineComponent({
 
 		/** 重置速度 */
 		const resetSpeed = () => {
-			speed.value = state.originSpeed;
+			speed.value = Math.floor(state.originSpeed);
 		};
 
 		watch(