没有子路由的情况下
在app.component.html文件中修改如下:
<ion-app>
<ion-router-outlet [swipeGesture] = 'false'></ion-router-outlet>
</ion-app>
另一种方法
没有子路由的情况下
在app.component.html文件中修改如下:
<ion-app>
<ion-router-outlet [swipeGesture] = 'false'></ion-router-outlet>
</ion-app>
另一种方法
本文标题:ionic 导航(NavController)禁用侧滑
本文链接:https://www.haomeiwen.com/subject/bvtrmctx.html
网友评论