【RichEditor】修复鼠标左键点击AI实体无法拉起页面问题

Signed-off-by: b30045777 <baoguoqiang3@huawei.com>
Change-Id: Id5ebf100b3c43e0d54d3f124203cc05340a587ef
This commit is contained in:
b30045777 2024-11-18 16:44:30 +08:00
parent ba511825df
commit aced585d99

View File

@ -113,6 +113,9 @@ void DataDetectorAdapter::OnClickAIMenuOption(const AISpan& aiSpan,
if (targetNode) {
overlayManager->CloseAIEntityMenu(targetNode->GetId());
}
if (mainContainerId_ == -1) {
mainContainerId_ = Container::CurrentId();
}
Container::UpdateCurrent(mainContainerId_);
auto runtimeContext = Platform::AceContainer::GetRuntimeContext(pipeline->GetInstanceId());