fix: 🐛 修复店铺入驻bug

This commit is contained in:
Yer
2023-09-04 10:27:10 +08:00
parent 63fee6f272
commit 1e0580ba15
3 changed files with 22 additions and 12 deletions

View File

@@ -180,6 +180,7 @@ export default {
if (this.tabbars[index].id != item.id) {
this.tabbars[index].localName = item.name;
this.tabbars[index].id = item.id;
this.tabbars[index].center = item.center
if (index < this.tabbars.length - 1) {
this.tabbars.splice(index + 1, this.tabbars.length - index - 1);
}
@@ -195,6 +196,7 @@ export default {
localName: "请选择",
id: "",
children: data.data.result,
};
this.tabbars.push(current);
this.tabCurrentIndex++;
@@ -387,4 +389,4 @@ export default {
icon {
margin-left: 40rpx;
}
</style>
</style>