Pre Merge pull request !792 from 卢越/master

pull/792/MERGE
卢越 2025-07-21 09:10:36 +00:00 committed by Gitee
commit 2ae2f54ec9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 4 additions and 0 deletions

View File

@ -269,6 +269,10 @@ watch(
if (!val || selectedComponentIndex.value === -1) {
return
}
// -1
if (props.showTabBar) {
selectedComponentIndex.value = -1
}
pageComponents.value[selectedComponentIndex.value] = selectedComponent.value!
},
{ deep: true }