uni-h5.es.js:2770 Uncaught (in promise) {errMsg: 'switchTab:fail Navigation cancelled from "/" to "/pages/tg/index" with a new navigation.'}

- 发布:2023-06-25 10:45
- 更新:2024-12-03 11:08
- 阅读:590
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win11
HBuilderX类型: 正式
HBuilderX版本号: 3.8.6
手机系统: Android
手机系统版本号: Android 13
手机厂商: 华为
手机机型: hw
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
操作步骤:
uni-h5.es.js:2770 Uncaught (in promise) {errMsg: 'switchTab:fail Navigation cancelled from "/" to "/pages/tg/index" with a new navigation.'}
uni-h5.es.js:2770 Uncaught (in promise) {errMsg: 'switchTab:fail Navigation cancelled from "/" to "/pages/tg/index" with a new navigation.'}
预期结果:
uni-h5.es.js:2770 Uncaught (in promise) {errMsg: 'switchTab:fail Navigation cancelled from "/" to "/pages/tg/index" with a new navigation.'}
uni-h5.es.js:2770 Uncaught (in promise) {errMsg: 'switchTab:fail Navigation cancelled from "/" to "/pages/tg/index" with a new navigation.'}
实际结果:
uni-h5.es.js:2770 Uncaught (in promise) {errMsg: 'switchTab:fail Navigation cancelled from "/" to "/pages/tg/index" with a new navigation.'}
uni-h5.es.js:2770 Uncaught (in promise) {errMsg: 'switchTab:fail Navigation cancelled from "/" to "/pages/tg/index" with a new navigation.'}
bug描述:
上周都正常跳转,这周启动就不能跳转,uniapp 垃圾。
复制代码uni-h5.es.js:2770 Uncaught (in promise) {errMsg: 'switchTab:fail Navigation cancelled from "/" to "/pages/tg/index" with a new navigation.'}
2 个回复
i***@hotmail.com
这个问题解决了吗?
w***@163.com
重复页面跳转:在进行页面跳转时,如果在跳转操作还未完成时,用户再次尝试跳转至相同或其他页面,就可能出现此提示
页面栈超出限制