mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
@@ -30,7 +30,7 @@ export class NavController {
|
||||
}
|
||||
}
|
||||
|
||||
navigateBack(url: string | UrlTree, animated?: boolean, extras?: NavigationExtras) {
|
||||
navigateBack(url: string | UrlTree | any[], animated?: boolean, extras?: NavigationExtras) {
|
||||
this.setIntent(NavIntent.Back, animated);
|
||||
extras = { replaceUrl: true, ...extras };
|
||||
if (Array.isArray(url)) {
|
||||
@@ -40,7 +40,7 @@ export class NavController {
|
||||
}
|
||||
}
|
||||
|
||||
navigateRoot(url: string | UrlTree, animated?: boolean, extras?: NavigationExtras) {
|
||||
navigateRoot(url: string | UrlTree | any[], animated?: boolean, extras?: NavigationExtras) {
|
||||
this.setIntent(NavIntent.Root, animated);
|
||||
if (Array.isArray(url)) {
|
||||
return this.router!.navigate(url, extras);
|
||||
|
||||
Reference in New Issue
Block a user