ionic-team / ionic-team/ionic-framework

bug: vue, swipe to go back is ignore after switching tabs

未关闭
#24,594 3 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
package: vue type: bug
主要语言
TypeScript
星标
52.7k
派生
13.3k
平均合并
1 天 14 小时
30 天内合并 PR
50

描述

### Prerequisites

- [X] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#creating-an-issue).
- [X] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [X] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.

### Ionic Framework Version

- [ ] v4.x
- [ ] v5.x
- [X] v6.x

### Current Behavior

When I go to a page with tabs from the home page, it can go back by using swipe gesture on the tab1, but not fine on tab2 and tab3.

![QQ20220119-102838-HD 2](https://user-images.githubusercontent.com/7185025/150053742-b6ee461f-a815-4c9d-a33d-c20177ed0d23.gif)

### Expected Behavior

The swipe gesture works fine on tab2 and tab3 just like tab1.

### Steps to Reproduce

1.On home page, click the 'tab link' link to tab1.
2.Click the tab2 button on the bottom.
3.The swipe back gesture failed.

### Code Reproduction URL

https://github.com/guanvee/ionic6-vue-tabs/tree/add-defaultHref

### Ionic Info

Ionic:

Ionic CLI : 6.18.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/vue 6.0.1

Capacitor:

Capacitor CLI : 3.3.3
@capacitor/android : not installed
@capacitor/core : 3.3.3
@capacitor/ios : 3.3.4

Utility:

cordova-res : 0.15.4
native-run : 1.5.0

System:

NodeJS : v16.13.1 (/usr/local/bin/node)
npm : 8.1.2
OS : macOS Monterey

### Additional Information

_No response_

贡献指南

打开贡献指南

调研方向

从 add-defaultHref 分支中链接的 Vue tabs 复现开始,复现从 home 到 tab1,再到 tab2 的导航流程。跟踪该流程涉及的 Ionic Vue tab 和 swipe-back 入口点;当 swipe-back 手势在 tab2 和 tab3 上与在 tab1 上一样正常工作时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
frontend, mobile
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。