mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(nav): matches() function
This commit is contained in:
@@ -60,12 +60,12 @@ export function matches(view: ViewController | undefined, id: string, params: Co
|
||||
return false;
|
||||
}
|
||||
const currentParams = view.params;
|
||||
if (!currentParams && !params) {
|
||||
return false;
|
||||
}
|
||||
if (currentParams === params) {
|
||||
return true;
|
||||
}
|
||||
if (!currentParams && !params) {
|
||||
return true;
|
||||
}
|
||||
if (!currentParams || !params) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user