dcloudio / dcloudio/uni-app

H5 getCurrentPages() 存在重复的页面

Open
#2,367 0 comments 0 reactions 0 assignees View on GitHub
h5 提供了复现方案
Dominant language
JavaScript
Stars
41.6k
Forks
3.7k
Avg merge
7h 6m
Merged PRs (30d)
6

Description

**问题描述**
[问题描述:尽可能简洁清晰地把问题描述清楚]

**复现步骤**
[复现问题的步骤]
页面 `1` 跳转到页面 `2`,
页面 `2` 执行 `uni.navigateBack()`,
页面 `1` 同样的地方跳转到页面 `2`,
此时执行 `getCurrentPages()` 里面会有两个页面 2

**预期结果**
`getCurrentPages()` 不存在两个页面 `2`

**实际结果**
`getCurrentPages()` 存在两个页面 `2`

**系统信息:**
- 发行平台: [如 微信小程序、H5平台、5+ App等] H5
- 操作系统 [如 iOS 12.1.2、Android 7.0] 谷歌浏览器 `87.0.4280.66`
- HBuilderX版本 [如使用HBuilderX,则需提供 HBuilderX 版本号]
- uni-app版本 [如使用Vue-cli创建/运行项目,则提供`npm run info`的运行结果]
- 设备信息 [如 iPhone8 Plus] 谷歌浏览器 `87.0.4280.66` 工具 `IphoneX` 手机预览
![image](https://user-images.githubusercontent.com/16074662/102971891-29b14a00-4535-11eb-9068-6a29aac27224.png)

**补充信息**
[可选]
[根据你的分析,出现这个问题的原因可能在哪里?]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.