|
@@ -237,8 +237,13 @@ export default {
|
|
|
if(this.activeId == '' || val ==1){
|
|
if(this.activeId == '' || val ==1){
|
|
|
console.log('111');
|
|
console.log('111');
|
|
|
this.activeId = box2[0].id;
|
|
this.activeId = box2[0].id;
|
|
|
|
|
+ this.activeinfo = box2[0];
|
|
|
|
|
+ } else {
|
|
|
|
|
+ const activeItem = box2.find((item) => item.id === this.activeId);
|
|
|
|
|
+ if (activeItem) {
|
|
|
|
|
+ this.activeinfo = activeItem;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
- this.activeinfo = box2[0];
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
box3.push({id:0,name:"兴趣班",children:[]});
|
|
box3.push({id:0,name:"兴趣班",children:[]});
|