修复:解决可以触发两次下单支付的问题;
This commit is contained in:
@@ -394,15 +394,14 @@ const handleSubmit = async () => {
|
||||
|
||||
// 返回上一页
|
||||
setTimeout(() => {
|
||||
submitLoading.value = false
|
||||
uni.navigateBack({
|
||||
delta: props.backStep
|
||||
})
|
||||
}, 500)
|
||||
} catch (error) {
|
||||
console.error('提交订单失败:', error)
|
||||
} finally {
|
||||
// 无论成功还是失败,都要重置loading状态
|
||||
submitLoading.value = false
|
||||
console.error('提交订单失败:', error)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user