修复资源保存后的自动聚焦
Project CI / Frontend tests (pull_request) Successful in 3m21s
Project CI / Repository checks (pull_request) Successful in 6m18s
Project CI / Backend tests (pull_request) Successful in 6m46s
Project CI / Native shell tests (pull_request) Successful in 17m19s

将保存后资源卡的 DOM 查找范围改为资源画本管理器\n确保新派生资源和恢复资源在布局就绪后能够进入详情聚焦
This commit is contained in:
2026-09-05 13:04:54 +08:00
parent 879e732b04
commit ccb3a3ab6a
@@ -4889,7 +4889,7 @@ export default function ProjectDevelopmentView({
: false;
const card = intent.resourceId
? Array.from(
resourceCanvasRef.current?.querySelectorAll<HTMLElement>(
resourceBookManagerRef.current?.querySelectorAll<HTMLElement>(
'[data-resource-id]',
) ?? [],
).find((element) => element.dataset.resourceId === intent.resourceId)