mirror of
https://gitee.com/myxzgzs/boyue-ui-admin-vue3
synced 2025-08-08 08:22:41 +08:00
!792 fix: 【商城装修】删除“弹窗广告”后切换到基础设置页报错的问题;
Merge pull request !792 from 卢越/master
This commit is contained in:
commit
0648b55b5d
@ -269,6 +269,10 @@ watch(
|
|||||||
if (!val || selectedComponentIndex.value === -1) {
|
if (!val || selectedComponentIndex.value === -1) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// 如果是基础设置页,默认选中的索引改成-1,为了防止删除组件后切换到此页导致报错
|
||||||
|
if (props.showTabBar) {
|
||||||
|
selectedComponentIndex.value = -1
|
||||||
|
}
|
||||||
pageComponents.value[selectedComponentIndex.value] = selectedComponent.value!
|
pageComponents.value[selectedComponentIndex.value] = selectedComponent.value!
|
||||||
},
|
},
|
||||||
{ deep: true }
|
{ deep: true }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user