mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-12-05 09:01:59 +08:00
Fix FluNavigationView noStackPush
Fix FluNavigationView noStackPush to verify if an argument is passed. If true, it is better to set the page has a new one in order to update it with the arguments.
This commit is contained in:
parent
d13c5a9c2c
commit
282b6ebce0
@ -1313,7 +1313,7 @@ Item {
|
|||||||
d.stackItems = d.stackItems.concat(nav_list.model[nav_list.currentIndex])
|
d.stackItems = d.stackItems.concat(nav_list.model[nav_list.currentIndex])
|
||||||
}
|
}
|
||||||
function noStackPush(){
|
function noStackPush(){
|
||||||
if(loader_content.source.toString() === url){
|
if(loader_content.source.toString() === url && Object.keys(argument).length === 0){
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
loader_content.setSource(url,argument)
|
loader_content.setSource(url,argument)
|
||||||
|
@ -1314,7 +1314,7 @@ Item {
|
|||||||
d.stackItems = d.stackItems.concat(nav_list.model[nav_list.currentIndex])
|
d.stackItems = d.stackItems.concat(nav_list.model[nav_list.currentIndex])
|
||||||
}
|
}
|
||||||
function noStackPush(){
|
function noStackPush(){
|
||||||
if(loader_content.source.toString() === url){
|
if(loader_content.source.toString() === url && Object.keys(argument).length === 0){
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
loader_content.setSource(url,argument)
|
loader_content.setSource(url,argument)
|
||||||
|
Loading…
Reference in New Issue
Block a user