Преглед на файлове

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(