Browse Source

feat: 轨迹自动定位调整

zhangjie 1 tháng trước cách đây
mục cha
commit
81a799d4aa
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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" });
     }
   },
   {