Explorar el Código

feat: 轨迹自动定位调整

zhangjie hace 1 mes
padre
commit
81a799d4aa
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/features/mark/MarkDrawTrack.vue

+ 1 - 1
src/features/mark/MarkDrawTrack.vue

@@ -123,7 +123,7 @@ watch(
             find?.offsetY || topTrack.offsetY
           }-${find?.offsetX || topTrack.offsetX}`
         )
-        ?.parentElement.scrollIntoView({ behavior: "smooth", block: "start" });
+        ?.parentElement?.scrollIntoView({ behavior: "smooth", block: "start" });
     }
   },
   {