bill 4 tháng trước cách đây
mục cha
commit
47f86644f5
1 tập tin đã thay đổi với 5 bổ sung2 xóa
  1. 5 2
      src/sdk/association/animation.ts

+ 5 - 2
src/sdk/association/animation.ts

@@ -31,7 +31,7 @@ import { Pos } from "@/utils/event";
 import Subtitle from "@/components/subtitle/index.vue";
 import { Size } from "@/components/drawing/dec";
 import router, { RoutesName } from "@/router";
-import { paths } from "@/store";
+import { isEdit, paths } from "@/store";
 import { Color } from "three";
 import { custom, showAMsStack } from "@/env";
 
@@ -400,13 +400,16 @@ export const addSubtitle = (data: AnimationModelSubtitle) => {
         currentTime,
         () => amMap[getAMKey(am)]?.am,
         size,
+        isEdit,
         play,
         () => amMap[key]?.am,
       ],
       (_a, _b, onCleanup) => {
+        console.error('currentTime', currentTime.value)
         if (
           !play.value &&
-          router.currentRoute.value.name !== RoutesName.animation
+          router.currentRoute.value.name !== RoutesName.animation &&
+          !(router.currentRoute.value.name === RoutesName.guide && isEdit.value)
         ) {
           show.value = false;
         } else if (