ソースを参照

feat: 轨迹自动定位调整

zhangjie 1 ヶ月 前
コミット
81a799d4aa
1 ファイル変更1 行追加1 行削除
  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" });
     }
   },
   {