uni-app IOS页面调用uni.reLaunch闪退

uni-app IOS页面调用uni.reLaunch闪退

示例代码:

        uni.getLocation({    
            type: 'gcj02',    
            geocode: true,    
            success: (res) => {    
                that.form.longitude = res.longitude    
                that.form.latitude = res.latitude    
                that.form.address = res.address.province+res.address.city+res.address.district+res.address.street+res.address.streetNum+res.address.poiName    
                that.form.short_address = res.address.street+res.address.streetNum+res.address.poiName    
                detail({ // 接口查询    
                    pid: that.form.pid    
                }).then(res => {    
                        that.form.fee_list = that.costList    
                        arriveTake(that.form).then(res => {  //接口上报    
                            if(res.code == 1){    
                                uni.reLaunch({     // 运行跳转时闪退    
                                    url: `/pages/transition/being-pickUp?pid=${that.form.pid}`    
                                })    
                            }else{    
                                uni.showToast({    
                                    title: res.msg,    
                                    duration: 3000,    
                                    icon: 'none'    
                                })    
                            }    
                        })    
                    }    
                })    
            }    
        })  

操作步骤:

  • IOS页面调用uni.reLaunch闪退

预期结果:

  • IOS页面调用uni.reLaunch不闪退

实际结果:

  • IOS页面调用uni.reLaunch闪退

bug描述:

  • IOS页面调用uni.reLaunch闪退

| 信息类别       | 信息内容           |
|----------------|--------------------|
| 产品分类       | uniapp/App         |
| PC开发环境     | Windows            |
| PC系统版本号   | w10                |
| HBuilderX类型  | 正式               |
| HBuilderX版本  | 4.15               |
| 手机系统       | iOS                |
| 手机系统版本号 | iOS 17             |
| 手机厂商       | 苹果               |
| 手机机型       | pro                |
| 页面类型       | vue                |
| vue版本        | vue2               |
| 打包方式       | 云端               |
| 项目创建方式   | HBuilderX          |

更多关于uni-app IOS页面调用uni.reLaunch闪退的实战教程也可以访问 https://www.itying.com/category-93-b0.html

2 回复

你好,我这里没有复现闪退情况,嵌套多个网络请求也没有发现。请你检查一下是否有其它因素影响

更多关于uni-app IOS页面调用uni.reLaunch闪退的实战教程也可以访问 https://www.itying.com/category-93-b0.html


renderjs会有影响吗,这边是首次跳转正常,第二次或者第三次就会闪退崩溃

回到顶部