二级替选

This commit is contained in:
THK3121 2023-06-08 16:11:17 +08:00
parent c29aecfcc0
commit d19c2a1834

View File

@ -71,13 +71,16 @@ export default {
},
//
selectTap(item, index) {
// console.log(item);
this.selectIndex = index;
this.selectClassifiedData = serialize(item.children);
console.log(item);
if(index == 0){
this.tapList=[]
this.selectClassifiedData = serialize(this.classifiedData);
}
if(index == 1){
this.selectIndex = index;
this.tapList.splice(index,1)
this.selectClassifiedData = serialize(this.tapList[0].children);
}
},
//
pleaseSelect() {