Explorar el Código

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

TIANYONG hace 1 año
padre
commit
07868763ae
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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(