uni-app IOS页面调用uni.reLaunch闪退
uni-app IOS页面调用uni.reLaunch闪退
问题描述
在调用 uni.reLaunch
时,iOS 设备出现闪退现象。
代码示例
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'
})
}
})
})
}
})
当执行到 uni.reLaunch
时,iOS 设备会闪退并显示程序崩溃。
更多关于uni-app IOS页面调用uni.reLaunch闪退的实战教程也可以访问 https://www.itying.com/category-93-b0.html
3 回复
没有,不知道是什么问题,relaunch之前的都执行了
回复 Burger: 可以加个QQ帮你看下