修复:解决可以触发两次下单支付的问题;

This commit is contained in:
2025-12-22 18:09:33 +08:00
parent cafb86cc9d
commit 88057e0805

View File

@@ -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)
}
}