This commit is contained in:
zhuzihcu
2023-04-11 16:30:07 +08:00
parent 3a46fd11c6
commit 51e73e7f8e
2 changed files with 19 additions and 14 deletions

View File

@ -301,20 +301,7 @@ FluObject{
}
function startPageByItem(data){
var items = navigationView.getItems();
for(var i=0;i<items.length;i++){
var item = items[i]
if(item.key === data.key){
if(navigationView.getCurrentIndex() === i){
return
}
navigationView.setCurrentIndex(i)
if(item.parent){
item.parent.isExpand = true
}
return
}
}
navigationView.startPageByItem(data)
}
}