Explorar o código

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

TIANYONG hai 1 ano
pai
achega
07868763ae
Modificáronse 1 ficheiros con 1 adicións e 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(