Merge pull request #576 from gaetandezeiraud/fix-flunavigationview-nostackpush

Fix FluNavigationView noStackPush
This commit is contained in:
zhuzichu 2024-12-01 19:52:11 +08:00 committed by GitHub
commit a8ca78f3f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1313,7 +1313,7 @@ Item {
d.stackItems = d.stackItems.concat(nav_list.model[nav_list.currentIndex])
}
function noStackPush(){
if(loader_content.source.toString() === url){
if(loader_content.source.toString() === url && Object.keys(argument).length === 0){
return
}
loader_content.setSource(url,argument)

View File

@ -1314,7 +1314,7 @@ Item {
d.stackItems = d.stackItems.concat(nav_list.model[nav_list.currentIndex])
}
function noStackPush(){
if(loader_content.source.toString() === url){
if(loader_content.source.toString() === url && Object.keys(argument).length === 0){
return
}
loader_content.setSource(url,argument)