fix(web): 修复控制台布局动态切换残留问题

This commit is contained in:
mofeng-git
2026-09-26 00:57:16 +08:00
parent 83cbfb6924
commit 0a041c2caa
2 changed files with 87 additions and 31 deletions

View File

@@ -257,6 +257,18 @@ watch(locale, () => {
})
watch([() => props.layout, () => props.showComputerUse, floatingCollapsed, minimalDisplayControls], () => {
// Layout changes can move this bar while its portal based controls are open.
// Close every transient surface first so no old portal remains attached to
// the document after the new layout is painted.
overflowMenuOpen.value = false
pasteOpen.value = false
atxOpen.value = false
videoPopoverOpen.value = false
hidPopoverOpen.value = false
audioPopoverOpen.value = false
msdDialogOpen.value = false
mobileAtxOpen.value = false
mobilePasteOpen.value = false
void observeLayout()
})