mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
test(router): fix tests
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { Build, Component, Element, Event, EventEmitter, Listen, Method, Prop, State } from '@stencil/core';
|
||||
import { Config, NavOutlet, RouteID, RouteWrite, RouterIntent } from '../../interface';
|
||||
import { Config, NavOutlet, RouteID, RouteWrite } from '../../interface';
|
||||
import { TabbarLayout, TabbarPlacement } from '../tabbar/tabbar';
|
||||
|
||||
|
||||
@ -262,7 +262,7 @@ export class Tabs implements NavOutlet {
|
||||
if (this.useRouter) {
|
||||
const router = this.doc.querySelector('ion-router');
|
||||
if (router) {
|
||||
return router.navChanged(RouterIntent.Forward);
|
||||
return router.navChanged(1);
|
||||
}
|
||||
}
|
||||
return Promise.resolve(false);
|
||||
|
||||
Reference in New Issue
Block a user