bill 7 月之前
父节点
当前提交
c9dd78b490
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      src/views/guide/path/sign.vue

+ 5 - 2
src/views/guide/path/sign.vue

@@ -16,7 +16,7 @@
           type="preview"
           class="icon"
           ctrl
-          @click="playScenePath(path, true)"
+          @click.stop="playHandler()"
           v-if="path.points.length"
         />
       </div>
@@ -57,7 +57,10 @@ const actions = {
   edit: () => emit("edit"),
   delete: () => emit("delete"),
 };
-
+const playHandler = () => {
+  node.value?.focus(true);
+  playScenePath(props.path, true);
+};
 const focus = ref(false);
 const hover = ref(false);
 const node = computed(() => getPathNode(props.path.id));