From 790dd7c1252bfa5dad6222098f84cc06b4f11750 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=B7=E9=BE=99?= Date: Wed, 13 Aug 2025 03:06:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E4=B8=AA=E8=A7=86=E9=A2=91=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/Interaction/RoleShotService.ts | 1 + app/service/Interaction/ShotService.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/service/Interaction/RoleShotService.ts b/app/service/Interaction/RoleShotService.ts index fdc4d33..9572c1d 100644 --- a/app/service/Interaction/RoleShotService.ts +++ b/app/service/Interaction/RoleShotService.ts @@ -175,6 +175,7 @@ export const useRoleShotServiceHook = (projectId: string,selectRole?:RoleEntity) // 循环调用接口,为每个选中的分镜单独调用 shotSelectionList.forEach(async (shot) => { try { + (selectedRole as any).shot = shot.videoUrl; // 调用应用角色到分镜接口(不等待完成) applyRoleToShots({ project_id: projectId, diff --git a/app/service/Interaction/ShotService.ts b/app/service/Interaction/ShotService.ts index b0e7c4d..eab9935 100644 --- a/app/service/Interaction/ShotService.ts +++ b/app/service/Interaction/ShotService.ts @@ -422,7 +422,8 @@ export const useShotService = (): UseShotService => { const containerRect = containerElement.getBoundingClientRect(); const containerWidth = containerRect.width; const containerHeight = containerRect.height; - + console.log('containerWidth', containerWidth); + console.log('containerHeight', containerHeight); // 计算识别框属性 return matched_persons .map((person) => {