Browse Source

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

TIANYONG 1 year ago
parent
commit
07868763ae
1 changed files with 1 additions and 1 deletions
  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(