4***@qq.com
4***@qq.com
  • 发布:2020-01-02 15:13
  • 更新:2021-06-04 20:55
  • 阅读:1032

【报Bug】uni.openLocation在ios上点击左上角返回按钮是会触发2次back事件

分类:uni-app

详细问题描述

uni.openLocation在ios上点击左上角返回按钮是会触发2次back事件

[内容]
假设有A页面->B页面。在B页面调用
uni.openLocation({
latitude: xxxx,
longitude: xxxx,
name: "xxxx",
address: "xxxx",
success: function() {
console.log('showLocation success');
}
});
在ios的真机B页面中点击按钮调用openLocation跳转到地图页面时,点击右上角返回按钮必定会触发2次回退事件,导致页面返回2层到A页面。这样使得ios和android表现不一致,同样的代码在android表现是正常的,回退到B页面。

IDE运行环境说明

HBuilderX

[IDE版本号]
2.5.0.20191231-alpha

[mac版本号]
10.13.6

uni-app运行环境说明

[运行端是h5或app或某个小程序?]
在app端的ios真机运行

HBuilderX创建 自定义组件模式

App运行环境说明

[Android版本号]

[iOS版本号]
ios版本号12.1.2
[手机型号]
iPhone 6 plus

2020-01-02 15:13 负责人:无 分享
已邀请:
DCloud_iOS_XHY

DCloud_iOS_XHY

Bug 已修复

该问题目前已经被锁定, 无法添加新回复